#C5C838#C5C838

#C5C838 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.5% C 0.159 H 110.7°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#C5C838
RGBrgb(197, 200, 56)
HSLhsl(61, 57%, 50%)
HSVhsv(61, 72%, 78%)
CMYKcmyk(1.5%, 0%, 72%, 21.6%)
CIE-LABlab(78.15, -17.87, 67.18)
CIE-LCHlch(78.15, 69.52, 104.89°)
OKLaboklab(80.55% -0.0561 0.1485)
OKLCHoklch(80.55% 0.159 110.7)
XYZxyz(44.3956, 53.4656, 11.7219)
Luminance0.5346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C838 #3B38C8
analogous
#C88338 #C5C838 #7DC838
triadic
#C5C838 #38C5C8 #C838C5
tetradic
#C5C838 #38C883 #3B38C8 #C8387D
square
#C5C838 #38C883 #3B38C8 #C8387D
split-complementary
#C5C838 #387DC8 #8338C8
monochromatic
#67691D #96992A #C5C838 #D3D568 #E1E398

Accessibility & contrast

On white

1.80
#C5C838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#C5C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C838
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C838#FFFFFF#000000##000000
##C5C8381.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF1C
Deuteranopia (green-blind)
#D9C343
Tritanopia (blue-blind)
#D3BBAC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c5c838;
/* rgb */ color: rgb(197, 200, 56);
/* oklch */ color: oklch(80.5% 0.159 110.7);
Tailwind
colors: {
  custom: {
    50: '#dad879',
    500: '#c5c838',
    950: '#000000',
  },
}
SCSS
$custom: #c5c838;
$custom-light: #dad879;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c838",
  "rgb": {
    "r": 197,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 61.25,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.80549,
    "c": 0.15868,
    "h": 110.7
  },
  "luminance": 0.53464
}

Semantic roles & 50–950 ramp

primary
#C5C838
secondary
#333273
accent
#48E04B
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C5C838

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

Preview Lab → · Contrast checker → · Palette generator →

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