#D7E340#D7E340

#D7E340 is a very light, vivid yellow. Relative luminance 0.698; OKLCH L 87.9% C 0.177 H 113.7°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#D7E340
RGBrgb(215, 227, 64)
HSLhsl(64, 74%, 57%)
HSVhsv(64, 72%, 89%)
CMYKcmyk(5.3%, 0%, 71.8%, 11%)
CIE-LABlab(86.88, -23.22, 73.30)
CIE-LCHlch(86.88, 76.89, 107.58°)
OKLaboklab(87.89% -0.0712 0.1622)
OKLCHoklch(87.89% 0.177 113.7)
XYZxyz(56.4205, 69.7566, 15.3417)
Luminance0.6976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E340 #4C40E3
analogous
#E39D40 #D7E340 #86E340
triadic
#D7E340 #40D7E3 #E340D7
tetradic
#D7E340 #40E39D #4C40E3 #E34086
square
#D7E340 #40E39D #4C40E3 #E34086
split-complementary
#D7E340 #4086E3 #9D40E3
monochromatic
#8A9316 #BCC81D #D7E340 #E2EB75 #EDF3AB

Accessibility & contrast

On white

1.40
#D7E340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.95
#D7E340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E340
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E340#FFFFFF#000000##000000
##D7E3401.001.4014.9514.95
#FFFFFF1.401.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4D820
Deuteranopia (green-blind)
#F3DB4D
Tritanopia (blue-blind)
#E5D6C4
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #d7e340;
/* rgb */ color: rgb(215, 227, 64);
/* oklch */ color: oklch(87.9% 0.177 113.7);
Tailwind
colors: {
  custom: {
    50: '#e7eb80',
    500: '#d7e340',
    950: '#000000',
  },
}
SCSS
$custom: #d7e340;
$custom-light: #e7eb80;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e340",
  "rgb": {
    "r": 215,
    "g": 227,
    "b": 64
  },
  "hsl": {
    "h": 64.417,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.87891,
    "c": 0.17711,
    "h": 113.7
  },
  "luminance": 0.69755
}

Semantic roles & 50–950 ramp

primary
#D7E340
secondary
#373097
accent
#37F144
background
#FFFEFB
surface
#FEFDF2
border
#D6D5CC
text
#16160B
muted
#85847E

Preview Lab

Preview with #D7E340

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

Preview Lab → · Contrast checker → · Palette generator →

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