#B5A338#B5A338

#B5A338 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.126 H 99.6°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B5A338
RGBrgb(181, 163, 56)
HSLhsl(51, 53%, 46%)
HSVhsv(51, 69%, 71%)
CMYKcmyk(0%, 9.9%, 69.1%, 29%)
CIE-LABlab(66.75, -5.74, 55.50)
CIE-LCHlch(66.75, 55.80, 95.90°)
OKLaboklab(71.14% -0.021 0.1243)
OKLCHoklch(71.14% 0.126 99.6)
XYZxyz(32.8685, 36.3052, 9.0169)
Luminance0.3630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A338 #384AB5
analogous
#B56538 #B5A338 #89B538
triadic
#B5A338 #38B5A3 #A338B5
tetradic
#B5A338 #38B565 #384AB5 #B53889
square
#B5A338 #38B565 #384AB5 #B53889
split-complementary
#B5A338 #3889B5 #6538B5
monochromatic
#584F1B #86792A #B5A338 #CDBD5D #DBD08C

Accessibility & contrast

On white

2.54
#B5A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#B5A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A338
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A338#FFFFFF#000000##000000
##B5A3381.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F29
Deuteranopia (green-blind)
#B7A53E
Tritanopia (blue-blind)
#C3978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a338;
/* rgb */ color: rgb(181, 163, 56);
/* oklch */ color: oklch(71.1% 0.126 99.6);
Tailwind
colors: {
  custom: {
    50: '#cfbd75',
    500: '#b5a338',
    950: '#000000',
  },
}
SCSS
$custom: #b5a338;
$custom-light: #cfbd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a338",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 51.36,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.71144,
    "c": 0.12608,
    "h": 99.6
  },
  "luminance": 0.36304
}

Semantic roles & 50–950 ramp

primary
#B5A338
secondary
#838DC6
accent
#60DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A338

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

Preview Lab → · Contrast checker → · Palette generator →

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