#B5CD38#B5CD38

#B5CD38 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 80.4% C 0.169 H 118.5°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#B5CD38
RGBrgb(181, 205, 56)
HSLhsl(70, 60%, 51%)
HSVhsv(70, 73%, 80%)
CMYKcmyk(11.7%, 0%, 72.7%, 19.6%)
CIE-LABlab(78.33, -26.96, 66.94)
CIE-LCHlch(78.33, 72.16, 111.94°)
OKLaboklab(80.4% -0.0804 0.1484)
OKLCHoklch(80.4% 0.169 118.5)
XYZxyz(41.6021, 53.7723, 11.9281)
Luminance0.5377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5CD38 #5038CD
analogous
#CD9A38 #B5CD38 #6ACD38
triadic
#B5CD38 #38B5CD #CD38B5
tetradic
#B5CD38 #38CD9A #5038CD #CD386A
square
#B5CD38 #38CD9A #5038CD #CD386A
split-complementary
#B5CD38 #386ACD #9A38CD
monochromatic
#616F1C #8CA028 #B5CD38 #C7D969 #D9E69A

Accessibility & contrast

On white

1.79
#B5CD38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#B5CD38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5CD38
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5CD38#FFFFFF#000000##000000
##B5CD381.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21A
Deuteranopia (green-blind)
#D8C245
Tritanopia (blue-blind)
#C0C2B0
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #b5cd38;
/* rgb */ color: rgb(181, 205, 56);
/* oklch */ color: oklch(80.4% 0.169 118.5);
Tailwind
colors: {
  custom: {
    50: '#cfdc79',
    500: '#b5cd38',
    950: '#000000',
  },
}
SCSS
$custom: #b5cd38;
$custom-light: #cfdc79;
$custom-dark: #000000;
JSON
{
  "hex": "#b5cd38",
  "rgb": {
    "r": 181,
    "g": 205,
    "b": 56
  },
  "hsl": {
    "h": 69.664,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.80396,
    "c": 0.16882,
    "h": 118.5
  },
  "luminance": 0.53772
}

Semantic roles & 50–950 ramp

primary
#B5CD38
secondary
#3D3178
accent
#45E35E
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14150A
muted
#83847D

Preview Lab

Preview with #B5CD38

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

Preview Lab → · Contrast checker → · Palette generator →

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