#B9A438#B9A438

#B9A438 is a light, vivid yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.127 H 98.0°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B9A438
RGBrgb(185, 164, 56)
HSLhsl(50, 54%, 47%)
HSVhsv(50, 70%, 73%)
CMYKcmyk(0%, 11.4%, 69.7%, 27.5%)
CIE-LABlab(67.39, -4.51, 56.27)
CIE-LCHlch(67.39, 56.45, 94.59°)
OKLaboklab(71.74% -0.0177 0.1258)
OKLCHoklch(71.74% 0.127 98)
XYZxyz(33.9985, 37.1524, 9.1209)
Luminance0.3715 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A438 #384DB9
analogous
#B96438 #B9A438 #8DB938
triadic
#B9A438 #38B9A4 #A438B9
tetradic
#B9A438 #38B964 #384DB9 #B9388D
square
#B9A438 #38B964 #384DB9 #B9388D
split-complementary
#B9A438 #388DB9 #6438B9
monochromatic
#5B511C #8A7A2A #B9A438 #CFBD5F #DDD08E

Accessibility & contrast

On white

2.49
#B9A438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B9A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A438
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A438#FFFFFF#000000##000000
##B9A4381.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9a438;
/* rgb */ color: rgb(185, 164, 56);
/* oklch */ color: oklch(71.7% 0.127 98.0);
Tailwind
colors: {
  custom: {
    50: '#d2be75',
    500: '#b9a438',
    950: '#000000',
  },
}
SCSS
$custom: #b9a438;
$custom-light: #d2be75;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a438",
  "rgb": {
    "r": 185,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 50.233,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71738,
    "c": 0.12704,
    "h": 98
  },
  "luminance": 0.37151
}

Semantic roles & 50–950 ramp

primary
#B9A438
secondary
#8590C8
accent
#63DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #B9A438

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

Preview Lab → · Contrast checker → · Palette generator →

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