#CFB040#CFB040

#CFB040 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.4% C 0.133 H 93.3°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#CFB040
RGBrgb(207, 176, 64)
HSLhsl(47, 60%, 53%)
HSVhsv(47, 69%, 81%)
CMYKcmyk(0%, 15%, 69.1%, 18.8%)
CIE-LABlab(72.69, -0.87, 59.05)
CIE-LCHlch(72.69, 59.06, 90.85°)
OKLaboklab(76.43% -0.0077 0.1323)
OKLCHoklch(76.43% 0.133 93.3)
XYZxyz(42.1850, 44.6886, 11.2533)
Luminance0.4469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB040 #405FCF
analogous
#CF6840 #CFB040 #A6CF40
triadic
#CFB040 #40CFB0 #B040CF
tetradic
#CFB040 #40CF68 #405FCF #CF40A6
square
#CFB040 #40CF68 #405FCF #CF40A6
split-complementary
#CFB040 #40A6CF #6840CF
monochromatic
#77631E #A88C2A #CFB040 #DBC471 #E8D8A2

Accessibility & contrast

On white

2.11
#CFB040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#CFB040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB040
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB040#FFFFFF#000000##000000
##CFB0401.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD31
Deuteranopia (green-blind)
#CAB646
Tritanopia (blue-blind)
#DFA299
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfb040;
/* rgb */ color: rgb(207, 176, 64);
/* oklch */ color: oklch(76.4% 0.133 93.3);
Tailwind
colors: {
  custom: {
    50: '#e1c77b',
    500: '#cfb040',
    950: '#000000',
  },
}
SCSS
$custom: #cfb040;
$custom-light: #e1c77b;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb040",
  "rgb": {
    "r": 207,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 46.993,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76432,
    "c": 0.13254,
    "h": 93.3
  },
  "luminance": 0.44686
}

Semantic roles & 50–950 ramp

primary
#CFB040
secondary
#97A4D4
accent
#67E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB040

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CFB040 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva