#CDA839#CDA839

#CDA839 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 74.5% C 0.132 H 89.9°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#CDA839
RGBrgb(205, 168, 57)
HSLhsl(45, 60%, 51%)
HSVhsv(45, 72%, 80%)
CMYKcmyk(0%, 18%, 72.2%, 19.6%)
CIE-LABlab(70.37, 2.15, 59.49)
CIE-LCHlch(70.37, 59.52, 87.93°)
OKLaboklab(74.54% 0.0003 0.1321)
OKLCHoklch(74.54% 0.132 89.9)
XYZxyz(39.9202, 41.2823, 9.7357)
Luminance0.4128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDA839 #395ECD
analogous
#CD5E39 #CDA839 #A8CD39
triadic
#CDA839 #39CDA8 #A839CD
tetradic
#CDA839 #39CD5E #395ECD #CD39A8
square
#CDA839 #39CD5E #395ECD #CD39A8
split-complementary
#CDA839 #39A8CD #5E39CD
monochromatic
#6F5B1C #A08228 #CDA839 #D9BD6A #E6D39B

Accessibility & contrast

On white

2.27
#CDA839 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#CDA839 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDA839
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDA839#FFFFFF#000000##000000
##CDA8391.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA629
Deuteranopia (green-blind)
#C4B03F
Tritanopia (blue-blind)
#DE9A92
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cda839;
/* rgb */ color: rgb(205, 168, 57);
/* oklch */ color: oklch(74.5% 0.132 89.9);
Tailwind
colors: {
  custom: {
    50: '#e0c176',
    500: '#cda839',
    950: '#000000',
  },
}
SCSS
$custom: #cda839;
$custom-light: #e0c176;
$custom-dark: #000000;
JSON
{
  "hex": "#cda839",
  "rgb": {
    "r": 205,
    "g": 168,
    "b": 57
  },
  "hsl": {
    "h": 45,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.74545,
    "c": 0.13205,
    "h": 89.9
  },
  "luminance": 0.4128
}

Semantic roles & 50–950 ramp

primary
#CDA839
secondary
#90A1D2
accent
#6CE345
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CDA839

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

Preview Lab → · Contrast checker → · Palette generator →

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