#B8B338#B8B338

#B8B338 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.9% C 0.140 H 107.0°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#B8B338
RGBrgb(184, 179, 56)
HSLhsl(58, 53%, 47%)
HSVhsv(58, 70%, 72%)
CMYKcmyk(0%, 2.7%, 69.6%, 27.8%)
CIE-LABlab(71.36, -12.79, 60.22)
CIE-LCHlch(71.36, 61.56, 101.99°)
OKLaboklab(74.87% -0.0411 0.1342)
OKLCHoklch(74.87% 0.14 107)
XYZxyz(36.6025, 42.7173, 10.0578)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B338 #383DB8
analogous
#B87338 #B8B338 #7DB838
triadic
#B8B338 #38B8B3 #B338B8
tetradic
#B8B338 #38B873 #383DB8 #B8387D
square
#B8B338 #38B873 #383DB8 #B8387D
split-complementary
#B8B338 #387DB8 #7338B8
monochromatic
#5A581B #89852A #B8B338 #CECA5F #DDD98E

Accessibility & contrast

On white

2.20
#B8B338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#B8B338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B338
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B338#FFFFFF#000000##000000
##B8B3381.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC24
Deuteranopia (green-blind)
#C4B140
Tritanopia (blue-blind)
#C5A79B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b338;
/* rgb */ color: rgb(184, 179, 56);
/* oklch */ color: oklch(74.9% 0.140 107.0);
Tailwind
colors: {
  custom: {
    50: '#d1c976',
    500: '#b8b338',
    950: '#000000',
  },
}
SCSS
$custom: #b8b338;
$custom-light: #d1c976;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b338",
  "rgb": {
    "r": 184,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 57.656,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.74873,
    "c": 0.14033,
    "h": 107
  },
  "luminance": 0.42716
}

Semantic roles & 50–950 ramp

primary
#B8B338
secondary
#8587C7
accent
#51DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B338

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

Preview Lab → · Contrast checker → · Palette generator →

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