#B5C02A#B5C02A

#B5C02A is a light, vivid yellow. Relative luminance 0.477; OKLCH L 77.4% C 0.162 H 114.0°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#B5C02A
RGBrgb(181, 192, 42)
HSLhsl(64, 64%, 46%)
HSVhsv(64, 78%, 75%)
CMYKcmyk(5.7%, 0%, 78.1%, 24.7%)
CIE-LABlab(74.63, -21.26, 67.94)
CIE-LCHlch(74.63, 71.19, 107.37°)
OKLaboklab(77.4% -0.0658 0.1482)
OKLCHoklch(77.4% 0.162 114)
XYZxyz(38.3248, 47.6910, 9.3764)
Luminance0.4769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C02A #352AC0
analogous
#C0802A #B5C02A #6AC02A
triadic
#B5C02A #2AB5C0 #C02AB5
tetradic
#B5C02A #2AC080 #352AC0 #C02A6A
square
#B5C02A #2AC080 #352AC0 #C02A6A
split-complementary
#B5C02A #2A6AC0 #802AC0
monochromatic
#565C14 #868E1F #B5C02A #CED84F #DCE381

Accessibility & contrast

On white

1.99
#B5C02A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.54
#B5C02A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C02A
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C02A#FFFFFF#000000##000000
##B5C02A1.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB600
Deuteranopia (green-blind)
#CEB938
Tritanopia (blue-blind)
#C1B4A4
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b5c02a;
/* rgb */ color: rgb(181, 192, 42);
/* oklch */ color: oklch(77.4% 0.162 114.0);
Tailwind
colors: {
  custom: {
    50: '#cfd271',
    500: '#b5c02a',
    950: '#000000',
  },
}
SCSS
$custom: #b5c02a;
$custom-light: #cfd271;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c02a",
  "rgb": {
    "r": 181,
    "g": 192,
    "b": 42
  },
  "hsl": {
    "h": 64.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.77402,
    "c": 0.16211,
    "h": 114
  },
  "luminance": 0.4769
}

Semantic roles & 50–950 ramp

primary
#B5C02A
secondary
#807ACC
accent
#41E74D
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #B5C02A

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

Preview Lab → · Contrast checker → · Palette generator →

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