#B5C842#B5C842

#B5C842 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.3% C 0.157 H 117.1°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#B5C842
RGBrgb(181, 200, 66)
HSLhsl(69, 55%, 52%)
HSVhsv(69, 67%, 78%)
CMYKcmyk(9.5%, 0%, 67%, 21.6%)
CIE-LABlab(77.00, -24.00, 61.97)
CIE-LCHlch(77.00, 66.45, 111.17°)
OKLaboklab(79.35% -0.0713 0.1396)
OKLCHoklch(79.35% 0.157 117.1)
XYZxyz(40.6946, 51.5261, 12.9550)
Luminance0.5153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C842 #5542C8
analogous
#C89842 #B5C842 #72C842
triadic
#B5C842 #42B5C8 #C842B5
tetradic
#B5C842 #42C898 #5542C8 #C84272
square
#B5C842 #42C898 #5542C8 #C84272
split-complementary
#B5C842 #4272C8 #9842C8
monochromatic
#646F20 #8F9F2E #B5C842 #C8D671 #DAE4A1

Accessibility & contrast

On white

1.86
#B5C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#B5C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C842
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C842#FFFFFF#000000##000000
##B5C8421.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2E
Deuteranopia (green-blind)
#D3BF4C
Tritanopia (blue-blind)
#C0BDAD
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #b5c842;
/* rgb */ color: rgb(181, 200, 66);
/* oklch */ color: oklch(79.3% 0.157 117.1);
Tailwind
colors: {
  custom: {
    50: '#ced87e',
    500: '#b5c842',
    950: '#000000',
  },
}
SCSS
$custom: #b5c842;
$custom-light: #ced87e;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c842",
  "rgb": {
    "r": 181,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 68.507,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79346,
    "c": 0.15674,
    "h": 117.1
  },
  "luminance": 0.51526
}

Semantic roles & 50–950 ramp

primary
#B5C842
secondary
#3F3679
accent
#4ADE5F
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14140A
muted
#83837D

Preview Lab

Preview with #B5C842

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

Preview Lab → · Contrast checker → · Palette generator →

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