#CFB242#CFB242

#CFB242 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.9% C 0.132 H 94.4°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#CFB242
RGBrgb(207, 178, 66)
HSLhsl(48, 59%, 54%)
HSVhsv(48, 68%, 81%)
CMYKcmyk(0%, 14%, 68.1%, 18.8%)
CIE-LABlab(73.22, -1.82, 58.77)
CIE-LCHlch(73.22, 58.80, 91.77°)
OKLaboklab(76.86% -0.0102 0.1321)
OKLCHoklch(76.86% 0.132 94.4)
XYZxyz(42.6380, 45.5018, 11.6901)
Luminance0.4550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB242 #425FCF
analogous
#CF6B42 #CFB242 #A5CF42
triadic
#CFB242 #42CFB2 #B242CF
tetradic
#CFB242 #42CF6B #425FCF #CF42A5
square
#CFB242 #42CF6B #425FCF #CF42A5
split-complementary
#CFB242 #42A5CF #6B42CF
monochromatic
#78661F #A98F2B #CFB242 #DBC673 #E8DAA4

Accessibility & contrast

On white

2.08
#CFB242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.10
#CFB242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB242
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB242#FFFFFF#000000##000000
##CFB2421.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AF33
Deuteranopia (green-blind)
#CBB848
Tritanopia (blue-blind)
#DFA49B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb242;
/* rgb */ color: rgb(207, 178, 66);
/* oklch */ color: oklch(76.9% 0.132 94.4);
Tailwind
colors: {
  custom: {
    50: '#e1c87c',
    500: '#cfb242',
    950: '#000000',
  },
}
SCSS
$custom: #cfb242;
$custom-light: #e1c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb242",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 47.66,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76859,
    "c": 0.13247,
    "h": 94.4
  },
  "luminance": 0.455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFB242

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

Preview Lab → · Contrast checker → · Palette generator →

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