#CFB342#CFB342

#CFB342 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 77.1% C 0.133 H 95.0°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#CFB342
RGBrgb(207, 179, 66)
HSLhsl(48, 59%, 54%)
HSVhsv(48, 68%, 81%)
CMYKcmyk(0%, 13.5%, 68.1%, 18.8%)
CIE-LABlab(73.48, -2.34, 59.04)
CIE-LCHlch(73.48, 59.09, 92.27°)
OKLaboklab(77.07% -0.0117 0.1327)
OKLCHoklch(77.07% 0.133 95)
XYZxyz(42.8377, 45.9012, 11.7566)
Luminance0.4590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB342 #425ECF
analogous
#CF6C42 #CFB342 #A4CF42
triadic
#CFB342 #42CFB3 #B342CF
tetradic
#CFB342 #42CF6C #425ECF #CF42A4
square
#CFB342 #42CF6C #425ECF #CF42A4
split-complementary
#CFB342 #42A4CF #6C42CF
monochromatic
#78661F #A9902B #CFB342 #DBC773 #E8DAA4

Accessibility & contrast

On white

2.06
#CFB342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#CFB342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB342
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB342#FFFFFF#000000##000000
##CFB3421.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#CCB848
Tritanopia (blue-blind)
#DFA59C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb342;
/* rgb */ color: rgb(207, 179, 66);
/* oklch */ color: oklch(77.1% 0.133 95.0);
Tailwind
colors: {
  custom: {
    50: '#e1c97c',
    500: '#cfb342',
    950: '#000000',
  },
}
SCSS
$custom: #cfb342;
$custom-light: #e1c97c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb342",
  "rgb": {
    "r": 207,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 48.085,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77065,
    "c": 0.13316,
    "h": 95
  },
  "luminance": 0.45899
}

Semantic roles & 50–950 ramp

primary
#CFB342
secondary
#98A4D5
accent
#64E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB342

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

Preview Lab → · Contrast checker → · Palette generator →

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