#C5C231#C5C231

#C5C231 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.2% C 0.157 H 108.3°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#C5C231
RGBrgb(197, 194, 49)
HSLhsl(59, 60%, 48%)
HSVhsv(59, 75%, 77%)
CMYKcmyk(0%, 1.5%, 75.1%, 22.7%)
CIE-LABlab(76.48, -15.17, 67.95)
CIE-LCHlch(76.48, 69.62, 102.59°)
OKLaboklab(79.21% -0.0491 0.1488)
OKLCHoklch(79.21% 0.157 108.3)
XYZxyz(42.8738, 50.6771, 10.4284)
Luminance0.5068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C231 #3134C5
analogous
#C57831 #C5C231 #7EC531
triadic
#C5C231 #31C5C2 #C231C5
tetradic
#C5C231 #31C578 #3134C5 #C5317E
square
#C5C231 #31C578 #3134C5 #C5317E
split-complementary
#C5C231 #317EC5 #7831C5
monochromatic
#636119 #949225 #C5C231 #D7D45D #E3E18E

Accessibility & contrast

On white

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

On black

11.14
#C5C231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C231
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C231#FFFFFF#000000##000000
##C5C2311.001.8911.1411.14
#FFFFFF1.891.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA0D
Deuteranopia (green-blind)
#D5BF3D
Tritanopia (blue-blind)
#D3B5A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c231;
/* rgb */ color: rgb(197, 194, 49);
/* oklch */ color: oklch(79.2% 0.157 108.3);
Tailwind
colors: {
  custom: {
    50: '#dad475',
    500: '#c5c231',
    950: '#000000',
  },
}
SCSS
$custom: #c5c231;
$custom-light: #dad475;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c231",
  "rgb": {
    "r": 197,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 58.784,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.79206,
    "c": 0.15673,
    "h": 108.3
  },
  "luminance": 0.50676
}

Semantic roles & 50–950 ramp

primary
#C5C231
secondary
#2D2E6E
accent
#48E344
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#151409
muted
#84837D

Preview Lab

Preview with #C5C231

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

Preview Lab → · Contrast checker → · Palette generator →

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