#D7C241#D7C241

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

Color values

HEX#D7C241
RGBrgb(215, 194, 65)
HSLhsl(52, 65%, 55%)
HSVhsv(52, 70%, 84%)
CMYKcmyk(0%, 9.8%, 69.8%, 15.7%)
CIE-LABlab(78.12, -6.76, 64.38)
CIE-LCHlch(78.12, 64.74, 96.00°)
OKLaboklab(80.91% -0.0249 0.1435)
OKLCHoklch(80.91% 0.146 99.8)
XYZxyz(48.2725, 53.4145, 12.7674)
Luminance0.5341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C241 #4156D7
analogous
#D77741 #D7C241 #A1D741
triadic
#D7C241 #41D7C2 #C241D7
tetradic
#D7C241 #41D777 #4156D7 #D741A1
square
#D7C241 #41D777 #4156D7 #D741A1
split-complementary
#D7C241 #41A1D7 #7741D7
monochromatic
#82741B #B5A126 #D7C241 #E2D274 #ECE2A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C241#FFFFFF#000000##000000
##D7C2411.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)
#D4BD2E
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#E7B4A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c241;
/* rgb */ color: rgb(215, 194, 65);
/* oklch */ color: oklch(80.9% 0.146 99.8);
Tailwind
colors: {
  custom: {
    50: '#e7d47d',
    500: '#d7c241',
    950: '#000000',
  },
}
SCSS
$custom: #d7c241;
$custom-light: #e7d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c241",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 65
  },
  "hsl": {
    "h": 51.6,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.80908,
    "c": 0.14564,
    "h": 99.8
  },
  "luminance": 0.53412
}

Semantic roles & 50–950 ramp

primary
#D7C241
secondary
#333F89
accent
#57E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D7C241

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

Preview Lab → · Contrast checker → · Palette generator →

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