#B9A238#B9A238

#B9A238 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 71.3% C 0.126 H 96.7°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#B9A238
RGBrgb(185, 162, 56)
HSLhsl(49, 54%, 47%)
HSVhsv(49, 70%, 73%)
CMYKcmyk(0%, 12.4%, 69.7%, 27.5%)
CIE-LABlab(66.86, -3.45, 55.73)
CIE-LCHlch(66.86, 55.83, 93.54°)
OKLaboklab(71.31% -0.0147 0.1247)
OKLCHoklch(71.31% 0.126 96.7)
XYZxyz(33.6433, 36.4422, 9.0026)
Luminance0.3644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9A238 #384FB9
analogous
#B96138 #B9A238 #90B938
triadic
#B9A238 #38B9A2 #A238B9
tetradic
#B9A238 #38B961 #384FB9 #B93890
square
#B9A238 #38B961 #384FB9 #B93890
split-complementary
#B9A238 #3890B9 #6138B9
monochromatic
#5B501C #8A792A #B9A238 #CFBB5F #DDCF8E

Accessibility & contrast

On white

2.53
#B9A238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#B9A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B9A238
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9A238#FFFFFF#000000##000000
##B9A2381.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b9a238;
/* rgb */ color: rgb(185, 162, 56);
/* oklch */ color: oklch(71.3% 0.126 96.7);
Tailwind
colors: {
  custom: {
    50: '#d2bd75',
    500: '#b9a238',
    950: '#000000',
  },
}
SCSS
$custom: #b9a238;
$custom-light: #d2bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b9a238",
  "rgb": {
    "r": 185,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 49.302,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.71314,
    "c": 0.12552,
    "h": 96.7
  },
  "luminance": 0.3644
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B9A238

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

Preview Lab → · Contrast checker → · Palette generator →

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