#D7940C

#d7940c ≈ Gamboge

  • yellow
  • Lightness: medium
  • Saturation: vivid
  • Warm

#d7940c is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 84.31% red, 58.04% green and 4.71% blue; printed in CMYK it uses 0% cyan, 31.16% magenta, 94.42% yellow and 15.69% black. Its hue angle is 40.2°, with 89.43% saturation and 44.51% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 8.13:1 (WCAG AAA). The closest named color is Gamboge (#e49b0f), ΔE 2.74.

Description generated from the measured properties of this color.

Conversions of #d7940c into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cc9900
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.3565

Readable text 2.58:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 8.13:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #a1a1a1 ≈ 0.003% of males
Achromatomaly #b99c80 ≈ 0.001% of males
Protanopia #ac9700 ≈ 1.01% of males
Deuteranopia #bca816 ≈ 1.27% of males
Tritanopia #eb827e ≈ 0.0001% of males
Protanomaly #bf9600 ≈ 1.08% of males
Deuteranomaly #c7a013 ≈ 4.63% of males
Tritanomaly #e38a64 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d7940c {
  color: #d7940c;
}
Background
.bg-d7940c {
  background-color: #d7940c;
  color: #000000;
}
Border
.border-d7940c {
  border: 2px solid #d7940c;
}
CSS variables
:root {
  --color-primary: #d7940c;
  --color-primary-rgb: 215 148 12;
  --color-primary-hsl: 40 89% 45%;
}
Gradient
.gradient-d7940c {
  background: linear-gradient(135deg, #d7940c, #b4d70c);
}
Colored shadow
.shadow-d7940c {
  box-shadow: 0 8px 24px rgb(215 148 12 / 0.35);
}

Gamboge
#d7940c  rgb(215, 148, 12)  hsl(40, 89%, 45%)  Gamboge
#0c4fd7  rgb(12, 79, 215)  hsl(220, 89%, 45%)  Sapphire
#0cd794  rgb(12, 215, 148)  hsl(160, 89%, 45%)  Caribbean Green
#940cd7  rgb(148, 12, 215)  hsl(280, 89%, 45%)  Dark Violet