#C2C840#C2C840

#C2C840 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.4% C 0.154 H 111.9°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#C2C840
RGBrgb(194, 200, 64)
HSLhsl(63, 55%, 52%)
HSVhsv(63, 68%, 78%)
CMYKcmyk(3%, 0%, 68%, 21.6%)
CIE-LABlab(77.96, -18.72, 64.03)
CIE-LCHlch(77.96, 66.71, 106.30°)
OKLaboklab(80.36% -0.0575 0.1432)
OKLCHoklch(80.36% 0.154 111.9)
XYZxyz(43.8292, 53.1491, 12.7995)
Luminance0.5315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C840 #4640C8
analogous
#C88A40 #C2C840 #7EC840
triadic
#C2C840 #40C2C8 #C840C2
tetradic
#C2C840 #40C88A #4640C8 #C8407E
square
#C2C840 #40C88A #4640C8 #C8407E
split-complementary
#C2C840 #407EC8 #8A40C8
monochromatic
#6A6E20 #999D2D #C2C840 #D1D670 #E0E39F

Accessibility & contrast

On white

1.81
#C2C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#C2C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C840
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C840#FFFFFF#000000##000000
##C2C8401.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#D8C24A
Tritanopia (blue-blind)
#CFBCAD
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c2c840;
/* rgb */ color: rgb(194, 200, 64);
/* oklch */ color: oklch(80.4% 0.154 111.9);
Tailwind
colors: {
  custom: {
    50: '#d8d87d',
    500: '#c2c840',
    950: '#000000',
  },
}
SCSS
$custom: #c2c840;
$custom-light: #d8d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c840",
  "rgb": {
    "r": 194,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 62.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.80359,
    "c": 0.15437,
    "h": 111.9
  },
  "luminance": 0.53148
}

Semantic roles & 50–950 ramp

primary
#C2C840
secondary
#383577
accent
#49DF50
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C2C840

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

Preview Lab → · Contrast checker → · Palette generator →

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