#CBB252#CBB252

#CBB252 is a light, moderate yellow. Relative luminance 0.451; OKLCH L 76.6% C 0.119 H 94.8°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#CBB252
RGBrgb(203, 178, 82)
HSLhsl(48, 54%, 56%)
HSVhsv(48, 60%, 80%)
CMYKcmyk(0%, 12.3%, 59.6%, 20.4%)
CIE-LABlab(72.99, -2.51, 51.35)
CIE-LCHlch(72.99, 51.41, 92.80°)
OKLaboklab(76.63% -0.01 0.1188)
OKLCHoklch(76.63% 0.119 94.8)
XYZxyz(42.0738, 45.1485, 14.4794)
Luminance0.4515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBB252 #526BCB
analogous
#CB7552 #CBB252 #A8CB52
triadic
#CBB252 #52CBB2 #B252CB
tetradic
#CBB252 #52CB75 #526BCB #CB52A8
square
#CBB252 #52CB75 #526BCB #CB52A8
split-complementary
#CBB252 #52A8CB #7552CB
monochromatic
#7D6B26 #AC9334 #CBB252 #D9C781 #E7DCB0

Accessibility & contrast

On white

2.09
#CBB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#CBB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBB252
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBB252#FFFFFF#000000##000000
##CBB2521.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AF48
Deuteranopia (green-blind)
#C9B756
Tritanopia (blue-blind)
#DAA69D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cbb252;
/* rgb */ color: rgb(203, 178, 82);
/* oklch */ color: oklch(76.6% 0.119 94.8);
Tailwind
colors: {
  custom: {
    50: '#dec886',
    500: '#cbb252',
    950: '#000000',
  },
}
SCSS
$custom: #cbb252;
$custom-light: #dec886;
$custom-dark: #000000;
JSON
{
  "hex": "#cbb252",
  "rgb": {
    "r": 203,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 47.603,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.76634,
    "c": 0.11919,
    "h": 94.8
  },
  "luminance": 0.45146
}

Semantic roles & 50–950 ramp

primary
#CBB252
secondary
#A3AED5
accent
#69DD4B
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#15130B
muted
#84827C

Preview Lab

Preview with #CBB252

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

Preview Lab → · Contrast checker → · Palette generator →

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