#DCD298#DCD298

#DCD298 is a very light, moderate yellow. Relative luminance 0.636; OKLCH L 85.8% C 0.076 H 99.5°. Best body text is #000000 at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#DCD298
RGBrgb(220, 210, 152)
HSLhsl(51, 49%, 73%)
HSVhsv(51, 31%, 86%)
CMYKcmyk(0%, 4.5%, 30.9%, 13.7%)
CIE-LABlab(83.75, -5.28, 30.06)
CIE-LCHlch(83.75, 30.52, 99.96°)
OKLaboklab(85.8% -0.0126 0.0752)
OKLCHoklch(85.8% 0.076 99.5)
XYZxyz(58.2298, 63.5772, 38.9039)
Luminance0.6358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD298 #98A2DC
analogous
#DCB098 #DCD298 #C4DC98
triadic
#DCD298 #98DCD2 #D298DC
tetradic
#DCD298 #98DCB0 #98A2DC #DC98C4
square
#DCD298 #98DCB0 #98A2DC #DC98C4
split-complementary
#DCD298 #98C4DC #B098DC
monochromatic
#BAA83F #CCBE6A #DCD298 #ECE6C6 #F7F5E8

Accessibility & contrast

On white

1.53
#DCD298 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.72
#DCD298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD298
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD298#FFFFFF#000000##000000
##DCD2981.001.5313.7213.72
#FFFFFF1.531.0021.0021.00
#00000013.7221.001.001.00
##00000013.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCE94
Deuteranopia (green-blind)
#E0D39A
Tritanopia (blue-blind)
#E6CAC3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dcd298;
/* rgb */ color: rgb(220, 210, 152);
/* oklch */ color: oklch(85.8% 0.076 99.5);
Tailwind
colors: {
  custom: {
    50: '#e7dfb6',
    500: '#dcd298',
    950: '#000000',
  },
}
SCSS
$custom: #dcd298;
$custom-light: #e7dfb6;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd298",
  "rgb": {
    "r": 220,
    "g": 210,
    "b": 152
  },
  "hsl": {
    "h": 51.176,
    "s": 49.275,
    "l": 72.941
  },
  "oklch": {
    "l": 0.85804,
    "c": 0.07623,
    "h": 99.5
  },
  "luminance": 0.63576
}

Semantic roles & 50–950 ramp

primary
#DCD298
secondary
#6470B4
accent
#3FBD29
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DCD298

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

Preview Lab → · Contrast checker → · Palette generator →

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