#CFB542#CFB542

#CFB542 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 77.5% C 0.135 H 96.3°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#CFB542
RGBrgb(207, 181, 66)
HSLhsl(49, 59%, 54%)
HSVhsv(49, 68%, 81%)
CMYKcmyk(0%, 12.6%, 68.1%, 18.8%)
CIE-LABlab(74.00, -3.39, 59.58)
CIE-LCHlch(74.00, 59.68, 93.26°)
OKLaboklab(77.48% -0.0147 0.1338)
OKLCHoklch(77.48% 0.135 96.3)
XYZxyz(43.2414, 46.7087, 11.8912)
Luminance0.4671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB542 #425CCF
analogous
#CF6E42 #CFB542 #A2CF42
triadic
#CFB542 #42CFB5 #B542CF
tetradic
#CFB542 #42CF6E #425CCF #CF42A2
square
#CFB542 #42CF6E #425CCF #CF42A2
split-complementary
#CFB542 #42A2CF #6E42CF
monochromatic
#78681F #A9922B #CFB542 #DBC873 #E8DBA4

Accessibility & contrast

On white

2.03
#CFB542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#CFB542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB542
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB542#FFFFFF#000000##000000
##CFB5421.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B133
Deuteranopia (green-blind)
#CEBA48
Tritanopia (blue-blind)
#DFA89D
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cfb542;
/* rgb */ color: rgb(207, 181, 66);
/* oklch */ color: oklch(77.5% 0.135 96.3);
Tailwind
colors: {
  custom: {
    50: '#e1ca7c',
    500: '#cfb542',
    950: '#000000',
  },
}
SCSS
$custom: #cfb542;
$custom-light: #e1ca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb542",
  "rgb": {
    "r": 207,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 48.936,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77478,
    "c": 0.13459,
    "h": 96.3
  },
  "luminance": 0.46706
}

Semantic roles & 50–950 ramp

primary
#CFB542
secondary
#98A3D5
accent
#62E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CFB542

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

Preview Lab → · Contrast checker → · Palette generator →

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