#C5C226#C5C226

#C5C226 is a light, vivid yellow. Relative luminance 0.506; OKLCH L 79.2% C 0.162 H 108.4°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#C5C226
RGBrgb(197, 194, 38)
HSLhsl(59, 68%, 46%)
HSVhsv(59, 81%, 77%)
CMYKcmyk(0%, 1.5%, 80.7%, 22.7%)
CIE-LABlab(76.43, -15.57, 71.13)
CIE-LCHlch(76.43, 72.81, 102.35°)
OKLaboklab(79.15% -0.0511 0.1536)
OKLCHoklch(79.15% 0.162 108.4)
XYZxyz(42.6693, 50.5953, 9.3516)
Luminance0.5059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C226 #2629C5
analogous
#C57226 #C5C226 #78C526
triadic
#C5C226 #26C5C2 #C226C5
tetradic
#C5C226 #26C572 #2629C5 #C52678
square
#C5C226 #26C572 #2629C5 #C52678
split-complementary
#C5C226 #2678C5 #7226C5
monochromatic
#5E5D12 #928F1C #C5C226 #DCDA4C #E6E47F

Accessibility & contrast

On white

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

On black

11.12
#C5C226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C226
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C226#FFFFFF#000000##000000
##C5C2261.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D5BF35
Tritanopia (blue-blind)
#D4B5A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c226;
/* rgb */ color: rgb(197, 194, 38);
/* oklch */ color: oklch(79.2% 0.162 108.4);
Tailwind
colors: {
  custom: {
    50: '#dbd470',
    500: '#c5c226',
    950: '#000000',
  },
}
SCSS
$custom: #c5c226;
$custom-light: #dbd470;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c226",
  "rgb": {
    "r": 197,
    "g": 194,
    "b": 38
  },
  "hsl": {
    "h": 58.868,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.79151,
    "c": 0.16191,
    "h": 108.4
  },
  "luminance": 0.50594
}

Semantic roles & 50–950 ramp

primary
#C5C226
secondary
#26276A
accent
#41EB3D
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161408
muted
#84837D

Preview Lab

Preview with #C5C226

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

Preview Lab → · Contrast checker → · Palette generator →

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