#B5B238#B5B238

#B5B238 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.4% C 0.140 H 108.0°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#B5B238
RGBrgb(181, 178, 56)
HSLhsl(59, 53%, 46%)
HSVhsv(59, 69%, 71%)
CMYKcmyk(0%, 1.7%, 69.1%, 29%)
CIE-LABlab(70.84, -13.57, 59.61)
CIE-LCHlch(70.84, 61.14, 102.83°)
OKLaboklab(74.39% -0.0431 0.133)
OKLCHoklch(74.39% 0.14 108)
XYZxyz(35.6916, 41.9512, 9.9579)
Luminance0.4195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B238 #383BB5
analogous
#B57438 #B5B238 #7AB538
triadic
#B5B238 #38B5B2 #B238B5
tetradic
#B5B238 #38B574 #383BB5 #B5387A
square
#B5B238 #38B574 #383BB5 #B5387A
split-complementary
#B5B238 #387AB5 #7438B5
monochromatic
#58561B #86842A #B5B238 #CDCA5D #DBDA8C

Accessibility & contrast

On white

2.24
#B5B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#B5B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B238
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B238#FFFFFF#000000##000000
##B5B2381.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C3AF40
Tritanopia (blue-blind)
#C2A79A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b5b238;
/* rgb */ color: rgb(181, 178, 56);
/* oklch */ color: oklch(74.4% 0.140 108.0);
Tailwind
colors: {
  custom: {
    50: '#cec876',
    500: '#b5b238',
    950: '#000000',
  },
}
SCSS
$custom: #b5b238;
$custom-light: #cec876;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b238",
  "rgb": {
    "r": 181,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 58.56,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.74393,
    "c": 0.13981,
    "h": 108
  },
  "luminance": 0.4195
}

Semantic roles & 50–950 ramp

primary
#B5B238
secondary
#8385C6
accent
#4FDC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B238

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

Preview Lab → · Contrast checker → · Palette generator →

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