#B5A138#B5A138

#B5A138 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.124 H 98.3°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#B5A138
RGBrgb(181, 161, 56)
HSLhsl(50, 53%, 46%)
HSVhsv(50, 69%, 71%)
CMYKcmyk(0%, 11%, 69.1%, 29%)
CIE-LABlab(66.21, -4.67, 54.95)
CIE-LCHlch(66.21, 55.15, 94.86°)
OKLaboklab(70.72% -0.0179 0.1232)
OKLCHoklch(70.72% 0.124 98.3)
XYZxyz(32.5162, 35.6006, 8.8995)
Luminance0.3560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A138 #384CB5
analogous
#B56338 #B5A138 #8BB538
triadic
#B5A138 #38B5A1 #A138B5
tetradic
#B5A138 #38B563 #384CB5 #B5388B
square
#B5A138 #38B563 #384CB5 #B5388B
split-complementary
#B5A138 #388BB5 #6338B5
monochromatic
#584E1B #86772A #B5A138 #CDBB5D #DBCF8C

Accessibility & contrast

On white

2.59
#B5A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#B5A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A138
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A138#FFFFFF#000000##000000
##B5A1381.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B6A43E
Tritanopia (blue-blind)
#C3958C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a138;
/* rgb */ color: rgb(181, 161, 56);
/* oklch */ color: oklch(70.7% 0.124 98.3);
Tailwind
colors: {
  custom: {
    50: '#cfbc75',
    500: '#b5a138',
    950: '#000000',
  },
}
SCSS
$custom: #b5a138;
$custom-light: #cfbc75;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a138",
  "rgb": {
    "r": 181,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 50.4,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70717,
    "c": 0.12446,
    "h": 98.3
  },
  "luminance": 0.35599
}

Semantic roles & 50–950 ramp

primary
#B5A138
secondary
#838EC6
accent
#63DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A138

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

Preview Lab → · Contrast checker → · Palette generator →

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