#B5A438#B5A438

#B5A438 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.4% C 0.127 H 100.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B5A438
RGBrgb(181, 164, 56)
HSLhsl(52, 53%, 46%)
HSVhsv(52, 69%, 71%)
CMYKcmyk(0%, 9.4%, 69.1%, 29%)
CIE-LABlab(67.02, -6.27, 55.78)
CIE-LCHlch(67.02, 56.13, 96.41°)
OKLaboklab(71.36% -0.0225 0.1249)
OKLCHoklch(71.36% 0.127 100.2)
XYZxyz(33.0468, 36.6617, 9.0763)
Luminance0.3666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A438 #3849B5
analogous
#B56638 #B5A438 #88B538
triadic
#B5A438 #38B5A4 #A438B5
tetradic
#B5A438 #38B566 #3849B5 #B53888
square
#B5A438 #38B566 #3849B5 #B53888
split-complementary
#B5A438 #3888B5 #6638B5
monochromatic
#584F1B #867A2A #B5A438 #CDBE5D #DBD18C

Accessibility & contrast

On white

2.52
#B5A438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B5A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A438
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A438#FFFFFF#000000##000000
##B5A4381.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F29
Deuteranopia (green-blind)
#B8A63E
Tritanopia (blue-blind)
#C3988E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b5a438;
/* rgb */ color: rgb(181, 164, 56);
/* oklch */ color: oklch(71.4% 0.127 100.2);
Tailwind
colors: {
  custom: {
    50: '#cfbe75',
    500: '#b5a438',
    950: '#000000',
  },
}
SCSS
$custom: #b5a438;
$custom-light: #cfbe75;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a438",
  "rgb": {
    "r": 181,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 51.84,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71358,
    "c": 0.12691,
    "h": 100.2
  },
  "luminance": 0.3666
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5A438

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

Preview Lab → · Contrast checker → · Palette generator →

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