#D7C23E#D7C23E

#D7C23E is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.9% C 0.148 H 100.0°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#D7C23E
RGBrgb(215, 194, 62)
HSLhsl(52, 66%, 54%)
HSVhsv(52, 71%, 84%)
CMYKcmyk(0%, 9.8%, 71.2%, 15.7%)
CIE-LABlab(78.10, -6.91, 65.50)
CIE-LCHlch(78.10, 65.86, 96.02°)
OKLaboklab(80.89% -0.0256 0.1453)
OKLCHoklch(80.89% 0.148 100)
XYZxyz(48.1879, 53.3807, 12.3218)
Luminance0.5338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C23E #3E53D7
analogous
#D7763E #D7C23E #9FD73E
triadic
#D7C23E #3ED7C2 #C23ED7
tetradic
#D7C23E #3ED776 #3E53D7 #D73E9F
square
#D7C23E #3ED776 #3E53D7 #D73E9F
split-complementary
#D7C23E #3E9FD7 #763ED7
monochromatic
#80721B #B39F25 #D7C23E #E2D271 #ECE2A3

Accessibility & contrast

On white

1.80
#D7C23E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#D7C23E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C23E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C23E#FFFFFF#000000##000000
##D7C23E1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD29
Deuteranopia (green-blind)
#DAC546
Tritanopia (blue-blind)
#E8B4A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c23e;
/* rgb */ color: rgb(215, 194, 62);
/* oklch */ color: oklch(80.9% 0.148 100.0);
Tailwind
colors: {
  custom: {
    50: '#e7d47c',
    500: '#d7c23e',
    950: '#000000',
  },
}
SCSS
$custom: #d7c23e;
$custom-light: #e7d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c23e",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 62
  },
  "hsl": {
    "h": 51.765,
    "s": 65.665,
    "l": 54.314
  },
  "oklch": {
    "l": 0.80886,
    "c": 0.14757,
    "h": 100
  },
  "luminance": 0.53378
}

Semantic roles & 50–950 ramp

primary
#D7C23E
secondary
#323E87
accent
#56E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D7C23E

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

Preview Lab → · Contrast checker → · Palette generator →

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