#B8B538#B8B538

#B8B538 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.3% C 0.142 H 108.0°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#B8B538
RGBrgb(184, 181, 56)
HSLhsl(59, 53%, 47%)
HSVhsv(59, 70%, 72%)
CMYKcmyk(0%, 1.6%, 69.6%, 27.8%)
CIE-LABlab(71.91, -13.82, 60.76)
CIE-LCHlch(71.91, 62.31, 102.81°)
OKLaboklab(75.31% -0.044 0.1353)
OKLCHoklch(75.31% 0.142 108)
XYZxyz(37.0062, 43.5248, 10.1924)
Luminance0.4352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B538 #383BB8
analogous
#B87538 #B8B538 #7BB838
triadic
#B8B538 #38B8B5 #B538B8
tetradic
#B8B538 #38B875 #383BB8 #B8387B
square
#B8B538 #38B875 #383BB8 #B8387B
split-complementary
#B8B538 #387BB8 #7538B8
monochromatic
#5A591B #89872A #B8B538 #CECC5F #DDDB8E

Accessibility & contrast

On white

2.16
#B8B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#B8B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B538
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B538#FFFFFF#000000##000000
##B8B5381.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#C5A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b8b538;
/* rgb */ color: rgb(184, 181, 56);
/* oklch */ color: oklch(75.3% 0.142 108.0);
Tailwind
colors: {
  custom: {
    50: '#d1ca77',
    500: '#b8b538',
    950: '#000000',
  },
}
SCSS
$custom: #b8b538;
$custom-light: #d1ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b538",
  "rgb": {
    "r": 184,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 58.594,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.75309,
    "c": 0.14229,
    "h": 108
  },
  "luminance": 0.43524
}

Semantic roles & 50–950 ramp

primary
#B8B538
secondary
#8586C7
accent
#4EDD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B8B538

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

Preview Lab → · Contrast checker → · Palette generator →

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