#CDB152#CDB152

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

Color values

HEX#CDB152
RGBrgb(205, 177, 82)
HSLhsl(46, 55%, 56%)
HSVhsv(46, 60%, 80%)
CMYKcmyk(0%, 13.7%, 60%, 19.6%)
CIE-LABlab(72.91, -1.14, 51.31)
CIE-LCHlch(72.91, 51.32, 91.27°)
OKLaboklab(76.62% -0.0062 0.1187)
OKLCHoklch(76.62% 0.119 93)
XYZxyz(42.4238, 45.0348, 14.4390)
Luminance0.4503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB152 #526ECD
analogous
#CD7452 #CDB152 #ACCD52
triadic
#CDB152 #52CDB1 #B152CD
tetradic
#CDB152 #52CD74 #526ECD #CD52AC
square
#CDB152 #52CD74 #526ECD #CD52AC
split-complementary
#CDB152 #52ACCD #7452CD
monochromatic
#806B25 #AF9333 #CDB152 #DBC681 #E8DCB1

Accessibility & contrast

On white

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

On black

10.01
#CDB152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB152
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB152#FFFFFF#000000##000000
##CDB1521.002.1010.0110.01
#FFFFFF2.101.0021.0021.00
#00000010.0121.001.001.00
##00000010.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdb152;
/* rgb */ color: rgb(205, 177, 82);
/* oklch */ color: oklch(76.6% 0.119 93.0);
Tailwind
colors: {
  custom: {
    50: '#dfc886',
    500: '#cdb152',
    950: '#000000',
  },
}
SCSS
$custom: #cdb152;
$custom-light: #dfc886;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb152",
  "rgb": {
    "r": 205,
    "g": 177,
    "b": 82
  },
  "hsl": {
    "h": 46.341,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.76619,
    "c": 0.11881,
    "h": 93
  },
  "luminance": 0.45033
}

Semantic roles & 50–950 ramp

primary
#CDB152
secondary
#A4B0D7
accent
#6BDE49
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CDB152

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

Preview Lab → · Contrast checker → · Palette generator →

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