#B5C042#B5C042

#B5C042 is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.6% C 0.148 H 114.1°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#B5C042
RGBrgb(181, 192, 66)
HSLhsl(65, 50%, 51%)
HSVhsv(65, 66%, 75%)
CMYKcmyk(5.7%, 0%, 65.6%, 24.7%)
CIE-LABlab(74.77, -20.07, 59.68)
CIE-LCHlch(74.77, 62.97, 108.58°)
OKLaboklab(77.56% -0.0603 0.1348)
OKLCHoklch(77.56% 0.148 114.1)
XYZxyz(38.8901, 47.9171, 12.3534)
Luminance0.4792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C042 #4D42C0
analogous
#C08C42 #B5C042 #76C042
triadic
#B5C042 #42B5C0 #C042B5
tetradic
#B5C042 #42C08C #4D42C0 #C04276
square
#B5C042 #42C08C #4D42C0 #C04276
split-complementary
#B5C042 #4276C0 #8C42C0
monochromatic
#606622 #8B9431 #B5C042 #C7CF70 #D9DF9E

Accessibility & contrast

On white

1.98
#B5C042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#B5C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C042
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C042#FFFFFF#000000##000000
##B5C0421.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB731
Deuteranopia (green-blind)
#CDB94B
Tritanopia (blue-blind)
#C0B5A6
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #b5c042;
/* rgb */ color: rgb(181, 192, 66);
/* oklch */ color: oklch(77.6% 0.148 114.1);
Tailwind
colors: {
  custom: {
    50: '#ced27d',
    500: '#b5c042',
    950: '#000000',
  },
}
SCSS
$custom: #b5c042;
$custom-light: #ced27d;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c042",
  "rgb": {
    "r": 181,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 65.238,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77562,
    "c": 0.14765,
    "h": 114.1
  },
  "luminance": 0.47916
}

Semantic roles & 50–950 ramp

primary
#B5C042
secondary
#9893CB
accent
#4EDA5A
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B5C042

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

Preview Lab → · Contrast checker → · Palette generator →

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