#C7D251#C7D251

#C7D251 is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.1% C 0.152 H 113.8°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#C7D251
RGBrgb(199, 210, 81)
HSLhsl(65, 59%, 57%)
HSVhsv(65, 61%, 82%)
CMYKcmyk(5.2%, 0%, 61.4%, 17.6%)
CIE-LABlab(81.20, -20.55, 60.73)
CIE-LCHlch(81.20, 64.11, 108.69°)
OKLaboklab(83.08% -0.0612 0.1387)
OKLCHoklch(83.08% 0.152 113.8)
XYZxyz(48.0862, 58.8303, 16.6052)
Luminance0.5883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D251 #5C51D2
analogous
#D29C51 #C7D251 #87D251
triadic
#C7D251 #51C7D2 #D251C7
tetradic
#C7D251 #51D29C #5C51D2 #D25187
square
#C7D251 #51D29C #5C51D2 #D25187
split-complementary
#C7D251 #5187D2 #9C51D2
monochromatic
#7D8623 #ABB72F #C7D251 #D7DF82 #E6EBB2

Accessibility & contrast

On white

1.65
#C7D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#C7D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D251
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D251#FFFFFF#000000##000000
##C7D2511.001.6512.7712.77
#FFFFFF1.651.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C841
Deuteranopia (green-blind)
#E0CB59
Tritanopia (blue-blind)
#D3C6B7
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #c7d251;
/* rgb */ color: rgb(199, 210, 81);
/* oklch */ color: oklch(83.1% 0.152 113.8);
Tailwind
colors: {
  custom: {
    50: '#dbdf87',
    500: '#c7d251',
    950: '#000000',
  },
}
SCSS
$custom: #c7d251;
$custom-light: #dbdf87;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d251",
  "rgb": {
    "r": 199,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 65.116,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83083,
    "c": 0.15161,
    "h": 113.8
  },
  "luminance": 0.58829
}

Semantic roles & 50–950 ramp

primary
#C7D251
secondary
#423B8D
accent
#46E253
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #C7D251

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

Preview Lab → · Contrast checker → · Palette generator →

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