#C2C940#C2C940

#C2C940 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.6% C 0.155 H 112.3°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#C2C940
RGBrgb(194, 201, 64)
HSLhsl(63, 56%, 52%)
HSVhsv(63, 68%, 79%)
CMYKcmyk(3.5%, 0%, 68.2%, 21.2%)
CIE-LABlab(78.24, -19.22, 64.31)
CIE-LCHlch(78.24, 67.12, 106.64°)
OKLaboklab(80.58% -0.0589 0.1438)
OKLCHoklch(80.58% 0.155 112.3)
XYZxyz(44.0615, 53.6138, 12.8769)
Luminance0.5361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C940 #4740C9
analogous
#C98C40 #C2C940 #7DC940
triadic
#C2C940 #40C2C9 #C940C2
tetradic
#C2C940 #40C98C #4740C9 #C9407D
square
#C2C940 #40C98C #4740C9 #C9407D
split-complementary
#C2C940 #407DC9 #8C40C9
monochromatic
#6B6F1F #999F2D #C2C940 #D1D670 #E0E49F

Accessibility & contrast

On white

1.79
#C2C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#C2C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C940
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C940#FFFFFF#000000##000000
##C2C9401.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#D8C34A
Tritanopia (blue-blind)
#CFBDAE
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c2c940;
/* rgb */ color: rgb(194, 201, 64);
/* oklch */ color: oklch(80.6% 0.155 112.3);
Tailwind
colors: {
  custom: {
    50: '#d8d97d',
    500: '#c2c940',
    950: '#000000',
  },
}
SCSS
$custom: #c2c940;
$custom-light: #d8d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c940",
  "rgb": {
    "r": 194,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 63.066,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.80577,
    "c": 0.15543,
    "h": 112.3
  },
  "luminance": 0.53613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C2C940

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

Preview Lab → · Contrast checker → · Palette generator →

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