#C7D151#C7D151

#C7D151 is a very light, vivid yellow. Relative luminance 0.583; 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#C7D151
RGBrgb(199, 209, 81)
HSLhsl(65, 58%, 57%)
HSVhsv(65, 61%, 82%)
CMYKcmyk(4.8%, 0%, 61.2%, 18%)
CIE-LABlab(80.93, -20.06, 60.44)
CIE-LCHlch(80.93, 63.68, 108.36°)
OKLaboklab(82.87% -0.0598 0.1381)
OKLCHoklch(82.87% 0.15 113.4)
XYZxyz(47.8400, 58.3380, 16.5232)
Luminance0.5834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D151 #5B51D1
analogous
#D19B51 #C7D151 #87D151
triadic
#C7D151 #51C7D1 #D151C7
tetradic
#C7D151 #51D19B #5B51D1 #D15187
square
#C7D151 #51D19B #5B51D1 #D15187
split-complementary
#C7D151 #5187D1 #9B51D1
monochromatic
#7D8523 #ABB530 #C7D151 #D7DE81 #E6EBB2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7D151#FFFFFF#000000##000000
##C7D1511.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)
#DFC841
Deuteranopia (green-blind)
#DFCA59
Tritanopia (blue-blind)
#D3C5B6
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #c7d151;
/* rgb */ color: rgb(199, 209, 81);
/* oklch */ color: oklch(82.9% 0.150 113.4);
Tailwind
colors: {
  custom: {
    50: '#dbdf87',
    500: '#c7d151',
    950: '#000000',
  },
}
SCSS
$custom: #c7d151;
$custom-light: #dbdf87;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d151",
  "rgb": {
    "r": 199,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 64.688,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.82865,
    "c": 0.15049,
    "h": 113.4
  },
  "luminance": 0.58337
}

Semantic roles & 50–950 ramp

primary
#C7D151
secondary
#413B8B
accent
#46E153
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #C7D151

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

Preview Lab → · Contrast checker → · Palette generator →

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