#B8B238#B8B238

#B8B238 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.7% C 0.139 H 106.5°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#B8B238
RGBrgb(184, 178, 56)
HSLhsl(57, 53%, 47%)
HSVhsv(57, 70%, 72%)
CMYKcmyk(0%, 3.3%, 69.6%, 27.8%)
CIE-LABlab(71.09, -12.28, 59.95)
CIE-LCHlch(71.09, 61.19, 101.58°)
OKLaboklab(74.66% -0.0397 0.1336)
OKLCHoklch(74.66% 0.139 106.5)
XYZxyz(36.4028, 42.3179, 9.9912)
Luminance0.4232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B238 #383EB8
analogous
#B87238 #B8B238 #7EB838
triadic
#B8B238 #38B8B2 #B238B8
tetradic
#B8B238 #38B872 #383EB8 #B8387E
square
#B8B238 #38B872 #383EB8 #B8387E
split-complementary
#B8B238 #387EB8 #7238B8
monochromatic
#5A571B #89852A #B8B238 #CEC95F #DDD98E

Accessibility & contrast

On white

2.22
#B8B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#B8B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B238
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B238#FFFFFF#000000##000000
##B8B2381.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C4B040
Tritanopia (blue-blind)
#C5A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b238;
/* rgb */ color: rgb(184, 178, 56);
/* oklch */ color: oklch(74.7% 0.139 106.5);
Tailwind
colors: {
  custom: {
    50: '#d1c876',
    500: '#b8b238',
    950: '#000000',
  },
}
SCSS
$custom: #b8b238;
$custom-light: #d1c876;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b238",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 57.188,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.74655,
    "c": 0.13936,
    "h": 106.5
  },
  "luminance": 0.42317
}

Semantic roles & 50–950 ramp

primary
#B8B238
secondary
#8588C7
accent
#52DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B238

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

Preview Lab → · Contrast checker → · Palette generator →

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