#C7C151#C7C151

#C7C151 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.133 H 106.2°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#C7C151
RGBrgb(199, 193, 81)
HSLhsl(57, 51%, 55%)
HSVhsv(57, 59%, 78%)
CMYKcmyk(0%, 3%, 59.3%, 22%)
CIE-LABlab(76.60, -12.05, 55.73)
CIE-LCHlch(76.60, 57.02, 102.20°)
OKLaboklab(79.42% -0.0372 0.1281)
OKLCHoklch(79.42% 0.133 106.2)
XYZxyz(44.1098, 50.8775, 15.2798)
Luminance0.5088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C151 #5157C7
analogous
#C78651 #C7C151 #92C751
triadic
#C7C151 #51C7C1 #C151C7
tetradic
#C7C151 #51C786 #5157C7 #C75192
square
#C7C151 #51C786 #5157C7 #C75192
split-complementary
#C7C151 #5192C7 #8651C7
monochromatic
#777326 #A6A035 #C7C151 #D6D17F #E5E2AE

Accessibility & contrast

On white

1.88
#C7C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#C7C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C151
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C151#FFFFFF#000000##000000
##C7C1511.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA45
Deuteranopia (green-blind)
#D3BF57
Tritanopia (blue-blind)
#D4B5A9
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c151;
/* rgb */ color: rgb(199, 193, 81);
/* oklch */ color: oklch(79.4% 0.133 106.2);
Tailwind
colors: {
  custom: {
    50: '#dbd386',
    500: '#c7c151',
    950: '#000000',
  },
}
SCSS
$custom: #c7c151;
$custom-light: #dbd386;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c151",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 56.949,
    "s": 51.304,
    "l": 54.902
  },
  "oklch": {
    "l": 0.79416,
    "c": 0.13338,
    "h": 106.2
  },
  "luminance": 0.50876
}

Semantic roles & 50–950 ramp

primary
#C7C151
secondary
#3C4080
accent
#54DB4D
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C7C151

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

Preview Lab → · Contrast checker → · Palette generator →

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