#C5C338#C5C338

#C5C338 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.5% C 0.154 H 108.6°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#C5C338
RGBrgb(197, 195, 56)
HSLhsl(59, 56%, 50%)
HSVhsv(59, 72%, 77%)
CMYKcmyk(0%, 1%, 71.6%, 22.7%)
CIE-LABlab(76.79, -15.37, 65.88)
CIE-LCHlch(76.79, 67.65, 103.13°)
OKLaboklab(79.47% -0.0491 0.1457)
OKLCHoklch(79.47% 0.154 108.6)
XYZxyz(43.2565, 51.1874, 11.3422)
Luminance0.5119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C338 #383AC5
analogous
#C57D38 #C5C338 #81C538
triadic
#C5C338 #38C5C3 #C338C5
tetradic
#C5C338 #38C57D #383AC5 #C53881
square
#C5C338 #38C57D #383AC5 #C53881
split-complementary
#C5C338 #3881C5 #7D38C5
monochromatic
#66651D #95942A #C5C338 #D4D267 #E1E096

Accessibility & contrast

On white

1.87
#C5C338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#C5C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C338
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C338#FFFFFF#000000##000000
##C5C3381.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D5C042
Tritanopia (blue-blind)
#D3B6A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c338;
/* rgb */ color: rgb(197, 195, 56);
/* oklch */ color: oklch(79.5% 0.154 108.6);
Tailwind
colors: {
  custom: {
    50: '#dad478',
    500: '#c5c338',
    950: '#000000',
  },
}
SCSS
$custom: #c5c338;
$custom-light: #dad478;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c338",
  "rgb": {
    "r": 197,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 59.149,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.79466,
    "c": 0.15374,
    "h": 108.6
  },
  "luminance": 0.51186
}

Semantic roles & 50–950 ramp

primary
#C5C338
secondary
#313270
accent
#4BDF49
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5C338

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

Preview Lab → · Contrast checker → · Palette generator →

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