#C7D152#C7D152

#C7D152 is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 82.9% C 0.150 H 113.4°. Best body text is #000000 at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#C7D152
RGBrgb(199, 209, 82)
HSLhsl(65, 58%, 57%)
HSVhsv(65, 61%, 82%)
CMYKcmyk(4.8%, 0%, 60.8%, 18%)
CIE-LABlab(80.93, -19.99, 60.02)
CIE-LCHlch(80.93, 63.26, 108.42°)
OKLaboklab(82.88% -0.0595 0.1373)
OKLCHoklch(82.88% 0.15 113.4)
XYZxyz(47.8778, 58.3531, 16.7222)
Luminance0.5835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D152 #5C52D1
analogous
#D19B52 #C7D152 #88D152
triadic
#C7D152 #52C7D1 #D152C7
tetradic
#C7D152 #52D19B #5C52D1 #D15288
square
#C7D152 #52D19B #5C52D1 #D15288
split-complementary
#C7D152 #5288D1 #9B52D1
monochromatic
#7D8523 #ABB630 #C7D152 #D7DE82 #E6EBB3

Accessibility & contrast

On white

1.66
#C7D152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.67
#C7D152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D152
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D152#FFFFFF#000000##000000
##C7D1521.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC843
Deuteranopia (green-blind)
#DFCA5A
Tritanopia (blue-blind)
#D3C5B6
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #c7d152;
/* rgb */ color: rgb(199, 209, 82);
/* oklch */ color: oklch(82.9% 0.150 113.4);
Tailwind
colors: {
  custom: {
    50: '#dbdf88',
    500: '#c7d152',
    950: '#000000',
  },
}
SCSS
$custom: #c7d152;
$custom-light: #dbdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d152",
  "rgb": {
    "r": 199,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 64.724,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82875,
    "c": 0.14969,
    "h": 113.4
  },
  "luminance": 0.58352
}

Semantic roles & 50–950 ramp

primary
#C7D152
secondary
#423B8C
accent
#47E153
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #C7D152

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

Preview Lab → · Contrast checker → · Palette generator →

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