#C7C951#C7C951

#C7C951 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.1% C 0.142 H 110.1°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#C7C951
RGBrgb(199, 201, 81)
HSLhsl(61, 53%, 55%)
HSVhsv(61, 60%, 79%)
CMYKcmyk(1%, 0%, 59.7%, 21.2%)
CIE-LABlab(78.76, -16.09, 58.09)
CIE-LCHlch(78.76, 60.28, 105.48°)
OKLaboklab(81.13% -0.0486 0.1331)
OKLCHoklch(81.13% 0.142 110.1)
XYZxyz(45.9263, 54.5106, 15.8853)
Luminance0.5451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C951 #5351C9
analogous
#C98F51 #C7C951 #8BC951
triadic
#C7C951 #51C7C9 #C951C7
tetradic
#C7C951 #51C98F #5351C9 #C9518B
square
#C7C951 #51C98F #5351C9 #C9518B
split-complementary
#C7C951 #518BC9 #8F51C9
monochromatic
#787A26 #A7A934 #C7C951 #D6D780 #E5E6AE

Accessibility & contrast

On white

1.76
#C7C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#C7C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C951
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C951#FFFFFF#000000##000000
##C7C9511.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#D4BDB0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #c7c951;
/* rgb */ color: rgb(199, 201, 81);
/* oklch */ color: oklch(81.1% 0.142 110.1);
Tailwind
colors: {
  custom: {
    50: '#dbd987',
    500: '#c7c951',
    950: '#000000',
  },
}
SCSS
$custom: #c7c951;
$custom-light: #dbd987;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c951",
  "rgb": {
    "r": 199,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 61,
    "s": 52.632,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81133,
    "c": 0.14171,
    "h": 110.1
  },
  "luminance": 0.54509
}

Semantic roles & 50–950 ramp

primary
#C7C951
secondary
#3D3C82
accent
#4CDC4E
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #C7C951

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

Preview Lab → · Contrast checker → · Palette generator →

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