#B8B438#B8B438

#B8B438 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.1% C 0.141 H 107.5°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#B8B438
RGBrgb(184, 180, 56)
HSLhsl(58, 53%, 47%)
HSVhsv(58, 70%, 72%)
CMYKcmyk(0%, 2.2%, 69.6%, 27.8%)
CIE-LABlab(71.64, -13.31, 60.49)
CIE-LCHlch(71.64, 61.93, 102.41°)
OKLaboklab(75.09% -0.0426 0.1347)
OKLCHoklch(75.09% 0.141 107.5)
XYZxyz(36.8036, 43.1196, 10.1249)
Luminance0.4312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B438 #383CB8
analogous
#B87438 #B8B438 #7CB838
triadic
#B8B438 #38B8B4 #B438B8
tetradic
#B8B438 #38B874 #383CB8 #B8387C
square
#B8B438 #38B874 #383CB8 #B8387C
split-complementary
#B8B438 #387CB8 #7438B8
monochromatic
#5A581B #89862A #B8B438 #CECB5F #DDDA8E

Accessibility & contrast

On white

2.18
#B8B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#B8B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B438
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B438#FFFFFF#000000##000000
##B8B4381.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C5B241
Tritanopia (blue-blind)
#C5A89B
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b438;
/* rgb */ color: rgb(184, 180, 56);
/* oklch */ color: oklch(75.1% 0.141 107.5);
Tailwind
colors: {
  custom: {
    50: '#d1ca76',
    500: '#b8b438',
    950: '#000000',
  },
}
SCSS
$custom: #b8b438;
$custom-light: #d1ca76;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b438",
  "rgb": {
    "r": 184,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 58.125,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75091,
    "c": 0.1413,
    "h": 107.5
  },
  "luminance": 0.43118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8B438

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

Preview Lab → · Contrast checker → · Palette generator →

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