#C5BF28#C5BF28

#C5BF28 is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.5% C 0.158 H 107.1°. Best body text is #000000 at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#C5BF28
RGBrgb(197, 191, 40)
HSLhsl(58, 66%, 46%)
HSVhsv(58, 80%, 77%)
CMYKcmyk(0%, 3%, 79.7%, 22.7%)
CIE-LABlab(75.63, -13.99, 69.88)
CIE-LCHlch(75.63, 71.27, 101.32°)
OKLaboklab(78.51% -0.0466 0.1513)
OKLCHoklch(78.51% 0.158 107.1)
XYZxyz(42.0415, 49.2866, 9.3058)
Luminance0.4929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5BF28 #282EC5
analogous
#C57128 #C5BF28 #7DC528
triadic
#C5BF28 #28C5BF #BF28C5
tetradic
#C5BF28 #28C571 #282EC5 #C5287D
square
#C5BF28 #28C571 #282EC5 #C5287D
split-complementary
#C5BF28 #287DC5 #7128C5
monochromatic
#5F5C13 #928E1E #C5BF28 #DBD64F #E6E282

Accessibility & contrast

On white

1.93
#C5BF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#C5BF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5BF28
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5BF28#FFFFFF#000000##000000
##C5BF281.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#D3BD36
Tritanopia (blue-blind)
#D4B2A4
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #c5bf28;
/* rgb */ color: rgb(197, 191, 40);
/* oklch */ color: oklch(78.5% 0.158 107.1);
Tailwind
colors: {
  custom: {
    50: '#dbd270',
    500: '#c5bf28',
    950: '#000000',
  },
}
SCSS
$custom: #c5bf28;
$custom-light: #dbd270;
$custom-dark: #000000;
JSON
{
  "hex": "#c5bf28",
  "rgb": {
    "r": 197,
    "g": 191,
    "b": 40
  },
  "hsl": {
    "h": 57.707,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.78512,
    "c": 0.15832,
    "h": 107.1
  },
  "luminance": 0.49285
}

Semantic roles & 50–950 ramp

primary
#C5BF28
secondary
#7A7ECE
accent
#45E93F
background
#FEFCF7
surface
#FCF9ED
border
#D5D2C8
text
#161408
muted
#84827B

Preview Lab

Preview with #C5BF28

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

Preview Lab → · Contrast checker → · Palette generator →

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