#C2C838#C2C838

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

Color values

HEX#C2C838
RGBrgb(194, 200, 56)
HSLhsl(63, 57%, 50%)
HSVhsv(63, 72%, 78%)
CMYKcmyk(3%, 0%, 72%, 21.6%)
CIE-LABlab(77.91, -19.13, 66.88)
CIE-LCHlch(77.91, 69.56, 105.97°)
OKLaboklab(80.3% -0.0594 0.1479)
OKLCHoklch(80.3% 0.159 111.9)
XYZxyz(43.6176, 53.0645, 11.6854)
Luminance0.5306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2C838 #3E38C8
analogous
#C88638 #C2C838 #7AC838
triadic
#C2C838 #38C2C8 #C838C2
tetradic
#C2C838 #38C886 #3E38C8 #C8387A
square
#C2C838 #38C886 #3E38C8 #C8387A
split-complementary
#C2C838 #387AC8 #8638C8
monochromatic
#66691D #94992A #C2C838 #D1D568 #DFE398

Accessibility & contrast

On white

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

On black

11.61
#C2C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2C838
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2C838#FFFFFF#000000##000000
##C2C8381.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF1C
Deuteranopia (green-blind)
#D8C243
Tritanopia (blue-blind)
#CFBCAC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c2c838;
/* rgb */ color: rgb(194, 200, 56);
/* oklch */ color: oklch(80.3% 0.159 111.9);
Tailwind
colors: {
  custom: {
    50: '#d8d879',
    500: '#c2c838',
    950: '#000000',
  },
}
SCSS
$custom: #c2c838;
$custom-light: #d8d879;
$custom-dark: #000000;
JSON
{
  "hex": "#c2c838",
  "rgb": {
    "r": 194,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 62.5,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.80303,
    "c": 0.15939,
    "h": 111.9
  },
  "luminance": 0.53063
}

Semantic roles & 50–950 ramp

primary
#C2C838
secondary
#343273
accent
#48E04E
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C2C838

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

Preview Lab → · Contrast checker → · Palette generator →

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