#DFC151#DFC151

#DFC151 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.6% C 0.134 H 94.2°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#DFC151
RGBrgb(223, 193, 81)
HSLhsl(47, 69%, 60%)
HSVhsv(47, 64%, 87%)
CMYKcmyk(0%, 13.5%, 63.7%, 12.5%)
CIE-LABlab(78.71, -1.96, 58.63)
CIE-LCHlch(78.71, 58.67, 91.91°)
OKLaboklab(81.58% -0.0098 0.1337)
OKLCHoklch(81.58% 0.134 94.2)
XYZxyz(50.9890, 54.4246, 15.6023)
Luminance0.5442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC151 #516FDF
analogous
#DF7A51 #DFC151 #B6DF51
triadic
#DFC151 #51DFC1 #C151DF
tetradic
#DFC151 #51DF7A #516FDF #DF51B6
square
#DFC151 #51DF7A #516FDF #DF51B6
split-complementary
#DFC151 #51B6DF #7A51DF
monochromatic
#997F1C #CDAA26 #DFC151 #E9D385 #F2E6B8

Accessibility & contrast

On white

1.77
#DFC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#DFC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC151
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC151#FFFFFF#000000##000000
##DFC1511.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE44
Deuteranopia (green-blind)
#DBC756
Tritanopia (blue-blind)
#F0B3A9
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dfc151;
/* rgb */ color: rgb(223, 193, 81);
/* oklch */ color: oklch(81.6% 0.134 94.2);
Tailwind
colors: {
  custom: {
    50: '#ecd386',
    500: '#dfc151',
    950: '#000000',
  },
}
SCSS
$custom: #dfc151;
$custom-light: #ecd386;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc151",
  "rgb": {
    "r": 223,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 47.324,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81585,
    "c": 0.13402,
    "h": 94.2
  },
  "luminance": 0.54422
}

Semantic roles & 50–950 ramp

primary
#DFC151
secondary
#374D9D
accent
#61EC3C
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DFC151

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

Preview Lab → · Contrast checker → · Palette generator →

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