#CFB842#CFB842

#CFB842 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 78.1% C 0.137 H 98.0°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#CFB842
RGBrgb(207, 184, 66)
HSLhsl(50, 59%, 54%)
HSVhsv(50, 68%, 81%)
CMYKcmyk(0%, 11.1%, 68.1%, 18.8%)
CIE-LABlab(74.79, -4.96, 60.38)
CIE-LCHlch(74.79, 60.59, 94.69°)
OKLaboklab(78.1% -0.0192 0.1355)
OKLCHoklch(78.1% 0.137 98)
XYZxyz(43.8580, 47.9418, 12.0968)
Luminance0.4794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB842 #4259CF
analogous
#CF7142 #CFB842 #9FCF42
triadic
#CFB842 #42CFB8 #B842CF
tetradic
#CFB842 #42CF71 #4259CF #CF429F
square
#CFB842 #42CF71 #4259CF #CF429F
split-complementary
#CFB842 #429FCF #7142CF
monochromatic
#78691F #A9942B #CFB842 #DBCA73 #E8DDA4

Accessibility & contrast

On white

1.98
#CFB842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#CFB842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB842
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB842#FFFFFF#000000##000000
##CFB8421.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB432
Deuteranopia (green-blind)
#D0BB49
Tritanopia (blue-blind)
#DFABA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cfb842;
/* rgb */ color: rgb(207, 184, 66);
/* oklch */ color: oklch(78.1% 0.137 98.0);
Tailwind
colors: {
  custom: {
    50: '#e1cd7d',
    500: '#cfb842',
    950: '#000000',
  },
}
SCSS
$custom: #cfb842;
$custom-light: #e1cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb842",
  "rgb": {
    "r": 207,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 50.213,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.781,
    "c": 0.13684,
    "h": 98
  },
  "luminance": 0.4794
}

Semantic roles & 50–950 ramp

primary
#CFB842
secondary
#98A2D5
accent
#5FE345
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB842

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

Preview Lab → · Contrast checker → · Palette generator →

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