#B4A238#B4A238

#B4A238 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.125 H 99.5°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#B4A238
RGBrgb(180, 162, 56)
HSLhsl(51, 53%, 46%)
HSVhsv(51, 69%, 71%)
CMYKcmyk(0%, 10%, 68.9%, 29.4%)
CIE-LABlab(66.39, -5.64, 55.10)
CIE-LCHlch(66.39, 55.39, 95.85°)
OKLaboklab(70.84% -0.0207 0.1235)
OKLCHoklch(70.84% 0.125 99.5)
XYZxyz(32.4580, 35.8310, 8.9470)
Luminance0.3583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A238 #384AB4
analogous
#B46438 #B4A238 #88B438
triadic
#B4A238 #38B4A2 #A238B4
tetradic
#B4A238 #38B464 #384AB4 #B43888
square
#B4A238 #38B464 #384AB4 #B43888
split-complementary
#B4A238 #3888B4 #6438B4
monochromatic
#574E1B #857829 #B4A238 #CDBC5D #DBCF8B

Accessibility & contrast

On white

2.57
#B4A238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#B4A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A238
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A238#FFFFFF#000000##000000
##B4A2381.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E29
Deuteranopia (green-blind)
#B6A43E
Tritanopia (blue-blind)
#C2968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b4a238;
/* rgb */ color: rgb(180, 162, 56);
/* oklch */ color: oklch(70.8% 0.125 99.5);
Tailwind
colors: {
  custom: {
    50: '#cebd75',
    500: '#b4a238',
    950: '#000000',
  },
}
SCSS
$custom: #b4a238;
$custom-light: #cebd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a238",
  "rgb": {
    "r": 180,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 51.29,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70835,
    "c": 0.12522,
    "h": 99.5
  },
  "luminance": 0.35829
}

Semantic roles & 50–950 ramp

primary
#B4A238
secondary
#828CC5
accent
#61DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A238

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

Preview Lab → · Contrast checker → · Palette generator →

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