#CDC790#CDC790

#CDC790 is a very light, moderate yellow. Relative luminance 0.558; OKLCH L 82.1% C 0.073 H 102.6°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CDC790
RGBrgb(205, 199, 144)
HSLhsl(54, 38%, 68%)
HSVhsv(54, 30%, 80%)
CMYKcmyk(0%, 2.9%, 29.8%, 19.6%)
CIE-LABlab(79.52, -6.41, 28.36)
CIE-LCHlch(79.52, 29.07, 102.74°)
OKLaboklab(82.12% -0.0159 0.071)
OKLCHoklch(82.12% 0.073 102.6)
XYZxyz(50.6346, 55.8406, 34.4911)
Luminance0.5584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC790 #9096CD
analogous
#CDA890 #CDC790 #B4CD90
triadic
#CDC790 #90CDC7 #C790CD
tetradic
#CDC790 #90CDA8 #9096CD #CD90B4
square
#CDC790 #90CDA8 #9096CD #CD90B4
split-complementary
#CDC790 #90B4CD #A890CD
monochromatic
#9C9446 #BAB266 #CDC790 #E0DCBA #F3F2E4

Accessibility & contrast

On white

1.73
#CDC790 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#CDC790 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC790
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC790#FFFFFF#000000##000000
##CDC7901.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C38C
Deuteranopia (green-blind)
#D3C792
Tritanopia (blue-blind)
#D6C0B9
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc790;
/* rgb */ color: rgb(205, 199, 144);
/* oklch */ color: oklch(82.1% 0.073 102.6);
Tailwind
colors: {
  custom: {
    50: '#ddd7b1',
    500: '#cdc790',
    950: '#000000',
  },
}
SCSS
$custom: #cdc790;
$custom-light: #ddd7b1;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc790",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 144
  },
  "hsl": {
    "h": 54.098,
    "s": 37.888,
    "l": 68.431
  },
  "oklch": {
    "l": 0.82123,
    "c": 0.07277,
    "h": 102.6
  },
  "luminance": 0.5584
}

Semantic roles & 50–950 ramp

primary
#CDC790
secondary
#5F66A2
accent
#41B135
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151410
muted
#848381

Preview Lab

Preview with #CDC790

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

Preview Lab → · Contrast checker → · Palette generator →

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