#C2C151#C2C151

#C2C151 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.0% C 0.134 H 108.6°. Best body text is #000000 at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#C2C151
RGBrgb(194, 193, 81)
HSLhsl(59, 48%, 54%)
HSVhsv(59, 58%, 76%)
CMYKcmyk(0%, 0.5%, 58.2%, 23.9%)
CIE-LABlab(76.19, -14.14, 55.16)
CIE-LCHlch(76.19, 56.95, 104.37°)
OKLaboklab(78.99% -0.0428 0.127)
OKLCHoklch(78.99% 0.134 108.6)
XYZxyz(42.8046, 50.2045, 15.2186)
Luminance0.5020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C151 #5152C2
analogous
#C28951 #C2C151 #8BC251
triadic
#C2C151 #51C2C1 #C151C2
tetradic
#C2C151 #51C289 #5152C2 #C2518B
square
#C2C151 #51C289 #5152C2 #C2518B
split-complementary
#C2C151 #518BC2 #8951C2
monochromatic
#717028 #9E9D37 #C2C151 #D2D17E #E2E1AC

Accessibility & contrast

On white

1.90
#C2C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.04
#C2C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C151
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C151#FFFFFF#000000##000000
##C2C1511.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBA45
Deuteranopia (green-blind)
#D1BE57
Tritanopia (blue-blind)
#CFB6A9
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c2c151;
/* rgb */ color: rgb(194, 193, 81);
/* oklch */ color: oklch(79.0% 0.134 108.6);
Tailwind
colors: {
  custom: {
    50: '#d7d386',
    500: '#c2c151',
    950: '#000000',
  },
}
SCSS
$custom: #c2c151;
$custom-light: #d7d386;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c151",
  "rgb": {
    "r": 194,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 59.469,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.7899,
    "c": 0.13401,
    "h": 108.6
  },
  "luminance": 0.50203
}

Semantic roles & 50–950 ramp

primary
#C2C151
secondary
#3D3D7A
accent
#51D850
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140B
muted
#84837E

Preview Lab

Preview with #C2C151

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

Preview Lab → · Contrast checker → · Palette generator →

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