#B9D238#B9D238

#B9D238 is a light, vivid yellow. Relative luminance 0.567; OKLCH L 81.8% C 0.173 H 118.6°. Best body text is #000000 at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#B9D238
RGBrgb(185, 210, 56)
HSLhsl(70, 63%, 52%)
HSVhsv(70, 73%, 82%)
CMYKcmyk(11.9%, 0%, 73.3%, 17.6%)
CIE-LABlab(80.01, -27.71, 68.64)
CIE-LCHlch(80.01, 74.03, 111.98°)
OKLaboklab(81.82% -0.0827 0.1519)
OKLCHoklch(81.82% 0.173 118.6)
XYZxyz(43.7689, 56.6934, 12.3778)
Luminance0.5669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9D238 #5138D2
analogous
#D29E38 #B9D238 #6CD238
triadic
#B9D238 #38B9D2 #D238B9
tetradic
#B9D238 #38D29E #5138D2 #D2386C
square
#B9D238 #38D29E #5138D2 #D2386C
split-complementary
#B9D238 #386CD2 #9E38D2
monochromatic
#66751A #92A726 #B9D238 #CBDD6A #DCE99C

Accessibility & contrast

On white

1.70
#B9D238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.34
#B9D238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9D238
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9D238#FFFFFF#000000##000000
##B9D2381.001.7012.3412.34
#FFFFFF1.701.0021.0021.00
#00000012.3421.001.001.00
##00000012.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C617
Deuteranopia (green-blind)
#DDC745
Tritanopia (blue-blind)
#C4C6B5
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #b9d238;
/* rgb */ color: rgb(185, 210, 56);
/* oklch */ color: oklch(81.8% 0.173 118.6);
Tailwind
colors: {
  custom: {
    50: '#d2df7a',
    500: '#b9d238',
    950: '#000000',
  },
}
SCSS
$custom: #b9d238;
$custom-light: #d2df7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b9d238",
  "rgb": {
    "r": 185,
    "g": 210,
    "b": 56
  },
  "hsl": {
    "h": 69.74,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.81817,
    "c": 0.17298,
    "h": 118.6
  },
  "luminance": 0.56693
}

Semantic roles & 50–950 ramp

primary
#B9D238
secondary
#3D317E
accent
#42E65C
background
#FEFEFB
surface
#FBFCF2
border
#D4D5CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #B9D238

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

Preview Lab → · Contrast checker → · Palette generator →

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