#C4C227#C4C227

#C4C227 is a light, vivid yellow. Relative luminance 0.505; OKLCH L 79.1% C 0.162 H 108.8°. Best body text is #000000 at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#C4C227
RGBrgb(196, 194, 39)
HSLhsl(59, 67%, 46%)
HSVhsv(59, 80%, 77%)
CMYKcmyk(0%, 1%, 80.1%, 23.1%)
CIE-LABlab(76.36, -15.97, 70.76)
CIE-LCHlch(76.36, 72.54, 102.71°)
OKLaboklab(79.07% -0.0521 0.1531)
OKLCHoklch(79.07% 0.162 108.8)
XYZxyz(42.4246, 50.4672, 9.4254)
Luminance0.5047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C4C227 #2729C4
analogous
#C47327 #C4C227 #77C427
triadic
#C4C227 #27C4C2 #C227C4
tetradic
#C4C227 #27C473 #2729C4 #C42777
square
#C4C227 #27C473 #2729C4 #C42777
split-complementary
#C4C227 #2777C4 #7327C4
monochromatic
#5E5D13 #918F1D #C4C227 #DCDA4D #E6E480

Accessibility & contrast

On white

1.89
#C4C227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.09
#C4C227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C4C227
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C4C227#FFFFFF#000000##000000
##C4C2271.001.8911.0911.09
#FFFFFF1.891.0021.0021.00
#00000011.0921.001.001.00
##00000011.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA00
Deuteranopia (green-blind)
#D5BF36
Tritanopia (blue-blind)
#D3B5A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c4c227;
/* rgb */ color: rgb(196, 194, 39);
/* oklch */ color: oklch(79.1% 0.162 108.8);
Tailwind
colors: {
  custom: {
    50: '#dad470',
    500: '#c4c227',
    950: '#000000',
  },
}
SCSS
$custom: #c4c227;
$custom-light: #dad470;
$custom-dark: #000000;
JSON
{
  "hex": "#c4c227",
  "rgb": {
    "r": 196,
    "g": 194,
    "b": 39
  },
  "hsl": {
    "h": 59.236,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.7907,
    "c": 0.16168,
    "h": 108.8
  },
  "luminance": 0.50466
}

Semantic roles & 50–950 ramp

primary
#C4C227
secondary
#262769
accent
#40EA3E
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151408
muted
#84837D

Preview Lab

Preview with #C4C227

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

Preview Lab → · Contrast checker → · Palette generator →

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