#CFB252#CFB252

#CFB252 is a light, moderate yellow. Relative luminance 0.457; OKLCH L 77.0% C 0.120 H 92.6°. Best body text is #000000 at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#CFB252
RGBrgb(207, 178, 82)
HSLhsl(46, 57%, 57%)
HSVhsv(46, 60%, 81%)
CMYKcmyk(0%, 14%, 60.4%, 18.8%)
CIE-LABlab(73.36, -0.82, 51.87)
CIE-LCHlch(73.36, 51.87, 90.90°)
OKLaboklab(77.02% -0.0054 0.1198)
OKLCHoklch(77.02% 0.12 92.6)
XYZxyz(43.1774, 45.7176, 14.5311)
Luminance0.4572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFB252 #526FCF
analogous
#CF7452 #CFB252 #AECF52
triadic
#CFB252 #52CFB2 #B252CF
tetradic
#CFB252 #52CF74 #526FCF #CF52AE
square
#CFB252 #52CF74 #526FCF #CF52AE
split-complementary
#CFB252 #52AECF #7452CF
monochromatic
#826D24 #B29431 #CFB252 #DCC782 #EADDB2

Accessibility & contrast

On white

2.07
#CFB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.14
#CFB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFB252
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFB252#FFFFFF#000000##000000
##CFB2521.002.0710.1410.14
#FFFFFF2.071.0021.0021.00
#00000010.1421.001.001.00
##00000010.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF48
Deuteranopia (green-blind)
#CAB856
Tritanopia (blue-blind)
#DEA59D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cfb252;
/* rgb */ color: rgb(207, 178, 82);
/* oklch */ color: oklch(77.0% 0.120 92.6);
Tailwind
colors: {
  custom: {
    50: '#e1c886',
    500: '#cfb252',
    950: '#000000',
  },
}
SCSS
$custom: #cfb252;
$custom-light: #e1c886;
$custom-dark: #000000;
JSON
{
  "hex": "#cfb252",
  "rgb": {
    "r": 207,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 46.08,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.77016,
    "c": 0.11991,
    "h": 92.6
  },
  "luminance": 0.45715
}

Semantic roles & 50–950 ramp

primary
#CFB252
secondary
#A5B1D8
accent
#6BE048
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CFB252

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

Preview Lab → · Contrast checker → · Palette generator →

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