#CFB142#CFB142

#CFB142 is a light, vivid yellow. Relative luminance 0.451; OKLCH L 76.7% C 0.132 H 93.8°. Best body text is #000000 at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#CFB142
RGBrgb(207, 177, 66)
HSLhsl(47, 59%, 54%)
HSVhsv(47, 68%, 81%)
CMYKcmyk(0%, 14.5%, 68.1%, 18.8%)
CIE-LABlab(72.96, -1.29, 58.50)
CIE-LCHlch(72.96, 58.52, 91.26°)
OKLaboklab(76.65% -0.0087 0.1315)
OKLCHoklch(76.65% 0.132 93.8)
XYZxyz(42.4398, 45.1053, 11.6240)
Luminance0.4510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB142 #4260CF
analogous
#CF6A42 #CFB142 #A6CF42
triadic
#CFB142 #42CFB1 #B142CF
tetradic
#CFB142 #42CF6A #4260CF #CF42A6
square
#CFB142 #42CF6A #4260CF #CF42A6
split-complementary
#CFB142 #42A6CF #6A42CF
monochromatic
#78651F #A98E2B #CFB142 #DBC573 #E8D9A4

Accessibility & contrast

On white

2.10
#CFB142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.02
#CFB142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB142
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB142#FFFFFF#000000##000000
##CFB1421.002.1010.0210.02
#FFFFFF2.101.0021.0021.00
#00000010.0221.001.001.00
##00000010.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE34
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#DFA39A
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cfb142;
/* rgb */ color: rgb(207, 177, 66);
/* oklch */ color: oklch(76.7% 0.132 93.8);
Tailwind
colors: {
  custom: {
    50: '#e1c87c',
    500: '#cfb142',
    950: '#000000',
  },
}
SCSS
$custom: #cfb142;
$custom-light: #e1c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb142",
  "rgb": {
    "r": 207,
    "g": 177,
    "b": 66
  },
  "hsl": {
    "h": 47.234,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.76654,
    "c": 0.1318,
    "h": 93.8
  },
  "luminance": 0.45103
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFB142

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

Preview Lab → · Contrast checker → · Palette generator →

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