#C5B945#C5B945

#C5B945 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.4% C 0.135 H 103.4°. Best body text is #000000 at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#C5B945
RGBrgb(197, 185, 69)
HSLhsl(54, 52%, 52%)
HSVhsv(54, 65%, 77%)
CMYKcmyk(0%, 6.1%, 65%, 22.7%)
CIE-LABlab(74.19, -9.58, 58.25)
CIE-LCHlch(74.19, 59.03, 99.34°)
OKLaboklab(77.42% -0.0314 0.1318)
OKLCHoklch(77.42% 0.135 103.4)
XYZxyz(41.4507, 46.9995, 12.5175)
Luminance0.4700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5B945 #4551C5
analogous
#C57945 #C5B945 #91C545
triadic
#C5B945 #45C5B9 #B945C5
tetradic
#C5B945 #45C579 #4551C5 #C54591
square
#C5B945 #45C579 #4551C5 #C54591
split-complementary
#C5B945 #4591C5 #7945C5
monochromatic
#6D6622 #9C9231 #C5B945 #D4CB74 #E2DCA2

Accessibility & contrast

On white

2.02
#C5B945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.40
#C5B945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5B945
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5B945#FFFFFF#000000##000000
##C5B9451.002.0210.4010.40
#FFFFFF2.021.0021.0021.00
#00000010.4021.001.001.00
##00000010.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B336
Deuteranopia (green-blind)
#CDB94C
Tritanopia (blue-blind)
#D3ADA1
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #c5b945;
/* rgb */ color: rgb(197, 185, 69);
/* oklch */ color: oklch(77.4% 0.135 103.4);
Tailwind
colors: {
  custom: {
    50: '#dacd7e',
    500: '#c5b945',
    950: '#000000',
  },
}
SCSS
$custom: #c5b945;
$custom-light: #dacd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c5b945",
  "rgb": {
    "r": 197,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 54.375,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77421,
    "c": 0.13546,
    "h": 103.4
  },
  "luminance": 0.46998
}

Semantic roles & 50–950 ramp

primary
#C5B945
secondary
#979CCF
accent
#59DC4C
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C5B945

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

Preview Lab → · Contrast checker → · Palette generator →

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