#CFB042#CFB042

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

Color values

HEX#CFB042
RGBrgb(207, 176, 66)
HSLhsl(47, 59%, 54%)
HSVhsv(47, 68%, 81%)
CMYKcmyk(0%, 15%, 68.1%, 18.8%)
CIE-LABlab(72.70, -0.76, 58.24)
CIE-LCHlch(72.70, 58.24, 90.75°)
OKLaboklab(76.45% -0.0072 0.1309)
OKLCHoklch(76.45% 0.131 93.1)
XYZxyz(42.2430, 44.7118, 11.5584)
Luminance0.4471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB042 #4261CF
analogous
#CF6942 #CFB042 #A7CF42
triadic
#CFB042 #42CFB0 #B042CF
tetradic
#CFB042 #42CF69 #4261CF #CF42A7
square
#CFB042 #42CF69 #4261CF #CF42A7
split-complementary
#CFB042 #42A7CF #6942CF
monochromatic
#78641F #A98D2B #CFB042 #DBC473 #E8D9A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFB042#FFFFFF#000000##000000
##CFB0421.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)
#C2AD34
Deuteranopia (green-blind)
#CAB648
Tritanopia (blue-blind)
#DFA299
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cfb042;
/* rgb */ color: rgb(207, 176, 66);
/* oklch */ color: oklch(76.4% 0.131 93.1);
Tailwind
colors: {
  custom: {
    50: '#e1c77c',
    500: '#cfb042',
    950: '#000000',
  },
}
SCSS
$custom: #cfb042;
$custom-light: #e1c77c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb042",
  "rgb": {
    "r": 207,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 46.809,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76449,
    "c": 0.13114,
    "h": 93.1
  },
  "luminance": 0.44709
}

Semantic roles & 50–950 ramp

primary
#CFB042
secondary
#98A5D5
accent
#68E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB042

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

Preview Lab → · Contrast checker → · Palette generator →

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