#DFC828#DFC828

#DFC828 is a very light, vivid yellow. Relative luminance 0.572; OKLCH L 82.7% C 0.163 H 100.3°. Best body text is #000000 at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#DFC828
RGBrgb(223, 200, 40)
HSLhsl(52, 74%, 52%)
HSVhsv(52, 82%, 87%)
CMYKcmyk(0%, 10.3%, 82.1%, 12.5%)
CIE-LABlab(80.27, -7.39, 74.76)
CIE-LCHlch(80.27, 75.13, 95.64°)
OKLaboklab(82.74% -0.0293 0.1607)
OKLCHoklch(82.74% 0.163 100.3)
XYZxyz(51.4714, 57.1523, 10.3274)
Luminance0.5715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC828 #283FDF
analogous
#DF6D28 #DFC828 #9BDF28
triadic
#DFC828 #28DFC8 #C828DF
tetradic
#DFC828 #28DF6D #283FDF #DF289B
square
#DFC828 #28DF6D #283FDF #DF289B
split-complementary
#DFC828 #289BDF #6D28DF
monochromatic
#7A6D12 #B09D1A #DFC828 #E7D65D #EFE393

Accessibility & contrast

On white

1.69
#DFC828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.43
#DFC828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC828
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC828#FFFFFF#000000##000000
##DFC8281.001.6912.4312.43
#FFFFFF1.691.0021.0021.00
#00000012.4321.001.001.00
##00000012.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC200
Deuteranopia (green-blind)
#E2CB36
Tritanopia (blue-blind)
#F1B9AB
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #dfc828;
/* rgb */ color: rgb(223, 200, 40);
/* oklch */ color: oklch(82.7% 0.163 100.3);
Tailwind
colors: {
  custom: {
    50: '#eed872',
    500: '#dfc828',
    950: '#000000',
  },
}
SCSS
$custom: #dfc828;
$custom-light: #eed872;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc828",
  "rgb": {
    "r": 223,
    "g": 200,
    "b": 40
  },
  "hsl": {
    "h": 52.459,
    "s": 74.089,
    "l": 51.569
  },
  "oklch": {
    "l": 0.82738,
    "c": 0.16332,
    "h": 100.3
  },
  "luminance": 0.5715
}

Semantic roles & 50–950 ramp

primary
#DFC828
secondary
#293482
accent
#4EF137
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #DFC828

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

Preview Lab → · Contrast checker → · Palette generator →

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