#B8B138#B8B138

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

Color values

HEX#B8B138
RGBrgb(184, 177, 56)
HSLhsl(57, 53%, 47%)
HSVhsv(57, 70%, 72%)
CMYKcmyk(0%, 3.8%, 69.6%, 27.8%)
CIE-LABlab(70.82, -11.76, 59.67)
CIE-LCHlch(70.82, 60.82, 101.15°)
OKLaboklab(74.44% -0.0382 0.133)
OKLCHoklch(74.44% 0.138 106)
XYZxyz(36.2045, 41.9214, 9.9252)
Luminance0.4192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B138 #383FB8
analogous
#B87138 #B8B138 #7FB838
triadic
#B8B138 #38B8B1 #B138B8
tetradic
#B8B138 #38B871 #383FB8 #B8387F
square
#B8B138 #38B871 #383FB8 #B8387F
split-complementary
#B8B138 #387FB8 #7138B8
monochromatic
#5A571B #89842A #B8B138 #CEC85F #DDD88E

Accessibility & contrast

On white

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

On black

9.38
#B8B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B138
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B138#FFFFFF#000000##000000
##B8B1381.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA25
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#C5A599
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b8b138;
/* rgb */ color: rgb(184, 177, 56);
/* oklch */ color: oklch(74.4% 0.138 106.0);
Tailwind
colors: {
  custom: {
    50: '#d1c876',
    500: '#b8b138',
    950: '#000000',
  },
}
SCSS
$custom: #b8b138;
$custom-light: #d1c876;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b138",
  "rgb": {
    "r": 184,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 56.719,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.74438,
    "c": 0.13841,
    "h": 106
  },
  "luminance": 0.4192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8B138

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

Preview Lab → · Contrast checker → · Palette generator →

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