#C7D252#C7D252

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

Color values

HEX#C7D252
RGBrgb(199, 210, 82)
HSLhsl(65, 59%, 57%)
HSVhsv(65, 61%, 82%)
CMYKcmyk(5.2%, 0%, 61%, 17.6%)
CIE-LABlab(81.21, -20.48, 60.32)
CIE-LCHlch(81.21, 63.70, 108.75°)
OKLaboklab(83.09% -0.0609 0.138)
OKLCHoklch(83.09% 0.151 113.8)
XYZxyz(48.1239, 58.8454, 16.8042)
Luminance0.5884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D252 #5D52D2
analogous
#D29D52 #C7D252 #87D252
triadic
#C7D252 #52C7D2 #D252C7
tetradic
#C7D252 #52D29D #5D52D2 #D25287
square
#C7D252 #52D29D #5D52D2 #D25287
split-complementary
#C7D252 #5287D2 #9D52D2
monochromatic
#7E8723 #ACB730 #C7D252 #D7DF83 #E6EBB3

Accessibility & contrast

On white

1.64
#C7D252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7D252#FFFFFF#000000##000000
##C7D2521.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c7d252;
/* rgb */ color: rgb(199, 210, 82);
/* oklch */ color: oklch(83.1% 0.151 113.8);
Tailwind
colors: {
  custom: {
    50: '#dbdf88',
    500: '#c7d252',
    950: '#000000',
  },
}
SCSS
$custom: #c7d252;
$custom-light: #dbdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d252",
  "rgb": {
    "r": 199,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 65.156,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83092,
    "c": 0.15081,
    "h": 113.8
  },
  "luminance": 0.58844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C7D252

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

Preview Lab → · Contrast checker → · Palette generator →

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