#C2C540#C2C540

#C2C540 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.7% C 0.151 H 110.7°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#C2C540
RGBrgb(194, 197, 64)
HSLhsl(61, 53%, 51%)
HSVhsv(61, 68%, 77%)
CMYKcmyk(1.5%, 0%, 67.5%, 22.7%)
CIE-LABlab(77.14, -17.23, 63.21)
CIE-LCHlch(77.14, 65.52, 105.25°)
OKLaboklab(79.71% -0.0533 0.1415)
OKLCHoklch(79.71% 0.151 110.7)
XYZxyz(43.1412, 51.7731, 12.5702)
Luminance0.5177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C540 #4340C5
analogous
#C58540 #C2C540 #7FC540
triadic
#C2C540 #40C2C5 #C540C2
tetradic
#C2C540 #40C585 #4340C5 #C5407F
square
#C2C540 #40C585 #4340C5 #C5407F
split-complementary
#C2C540 #407FC5 #8540C5
monochromatic
#696A20 #97992F #C2C540 #D1D36F #E0E29E

Accessibility & contrast

On white

1.85
#C2C540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#C2C540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C540
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C540#FFFFFF#000000##000000
##C2C5401.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D5C049
Tritanopia (blue-blind)
#CFB9AA
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c2c540;
/* rgb */ color: rgb(194, 197, 64);
/* oklch */ color: oklch(79.7% 0.151 110.7);
Tailwind
colors: {
  custom: {
    50: '#d8d67d',
    500: '#c2c540',
    950: '#000000',
  },
}
SCSS
$custom: #c2c540;
$custom-light: #d8d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c540",
  "rgb": {
    "r": 194,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 61.353,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79705,
    "c": 0.15124,
    "h": 110.7
  },
  "luminance": 0.51772
}

Semantic roles & 50–950 ramp

primary
#C2C540
secondary
#363574
accent
#4BDD4E
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C2C540

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

Preview Lab → · Contrast checker → · Palette generator →

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