#B5A538#B5A538

#B5A538 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.6% C 0.128 H 100.8°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#B5A538
RGBrgb(181, 165, 56)
HSLhsl(52, 53%, 46%)
HSVhsv(52, 69%, 71%)
CMYKcmyk(0%, 8.8%, 69.1%, 29%)
CIE-LABlab(67.29, -6.80, 56.05)
CIE-LCHlch(67.29, 56.46, 96.91°)
OKLaboklab(71.57% -0.024 0.1255)
OKLCHoklch(71.57% 0.128 100.8)
XYZxyz(33.2265, 37.0210, 9.1362)
Luminance0.3702 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A538 #3848B5
analogous
#B56738 #B5A538 #87B538
triadic
#B5A538 #38B5A5 #A538B5
tetradic
#B5A538 #38B567 #3848B5 #B53887
square
#B5A538 #38B567 #3848B5 #B53887
split-complementary
#B5A538 #3887B5 #6738B5
monochromatic
#58501B #867A2A #B5A538 #CDBF5D #DBD18C

Accessibility & contrast

On white

2.50
#B5A538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#B5A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A538
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A538#FFFFFF#000000##000000
##B5A5381.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A029
Deuteranopia (green-blind)
#B9A73F
Tritanopia (blue-blind)
#C3998F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a538;
/* rgb */ color: rgb(181, 165, 56);
/* oklch */ color: oklch(71.6% 0.128 100.8);
Tailwind
colors: {
  custom: {
    50: '#cfbf75',
    500: '#b5a538',
    950: '#000000',
  },
}
SCSS
$custom: #b5a538;
$custom-light: #cfbf75;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a538",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 52.32,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71573,
    "c": 0.12775,
    "h": 100.8
  },
  "luminance": 0.3702
}

Semantic roles & 50–950 ramp

primary
#B5A538
secondary
#838CC6
accent
#5EDC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A538

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

Preview Lab → · Contrast checker → · Palette generator →

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