#B9A338#B9A338

#B9A338 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.5% C 0.126 H 97.4°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#B9A338
RGBrgb(185, 163, 56)
HSLhsl(50, 54%, 47%)
HSVhsv(50, 70%, 73%)
CMYKcmyk(0%, 11.9%, 69.7%, 27.5%)
CIE-LABlab(67.12, -3.98, 56.00)
CIE-LCHlch(67.12, 56.14, 94.07°)
OKLaboklab(71.53% -0.0162 0.1252)
OKLCHoklch(71.53% 0.126 97.4)
XYZxyz(33.8202, 36.7959, 9.0615)
Luminance0.3679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A338 #384EB9
analogous
#B96238 #B9A338 #8FB938
triadic
#B9A338 #38B9A3 #A338B9
tetradic
#B9A338 #38B962 #384EB9 #B9388F
square
#B9A338 #38B962 #384EB9 #B9388F
split-complementary
#B9A338 #388FB9 #6238B9
monochromatic
#5B501C #8A7A2A #B9A338 #CFBC5F #DDD08E

Accessibility & contrast

On white

2.51
#B9A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#B9A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A338
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A338#FFFFFF#000000##000000
##B9A3381.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9a338;
/* rgb */ color: rgb(185, 163, 56);
/* oklch */ color: oklch(71.5% 0.126 97.4);
Tailwind
colors: {
  custom: {
    50: '#d2bd75',
    500: '#b9a338',
    950: '#000000',
  },
}
SCSS
$custom: #b9a338;
$custom-light: #d2bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a338",
  "rgb": {
    "r": 185,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 49.767,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71526,
    "c": 0.12627,
    "h": 97.4
  },
  "luminance": 0.36794
}

Semantic roles & 50–950 ramp

primary
#B9A338
secondary
#8591C8
accent
#64DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #B9A338

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

Preview Lab → · Contrast checker → · Palette generator →

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