#B4A838#B4A838

#B4A838 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.1% C 0.130 H 103.1°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#B4A838
RGBrgb(180, 168, 56)
HSLhsl(54, 53%, 46%)
HSVhsv(54, 69%, 71%)
CMYKcmyk(0%, 6.7%, 68.9%, 29.4%)
CIE-LABlab(68.02, -8.81, 56.75)
CIE-LCHlch(68.02, 57.43, 98.83°)
OKLaboklab(72.13% -0.0296 0.127)
OKLCHoklch(72.13% 0.13 103.1)
XYZxyz(33.5402, 37.9954, 9.3077)
Luminance0.3799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A838 #3844B4
analogous
#B46A38 #B4A838 #82B438
triadic
#B4A838 #38B4A8 #A838B4
tetradic
#B4A838 #38B46A #3844B4 #B43882
square
#B4A838 #38B46A #3844B4 #B43882
split-complementary
#B4A838 #3882B4 #6A38B4
monochromatic
#57511B #857C29 #B4A838 #CDC25D #DBD38B

Accessibility & contrast

On white

2.44
#B4A838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#B4A838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A838
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A838#FFFFFF#000000##000000
##B4A8381.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A328
Deuteranopia (green-blind)
#BBA83F
Tritanopia (blue-blind)
#C19C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b4a838;
/* rgb */ color: rgb(180, 168, 56);
/* oklch */ color: oklch(72.1% 0.130 103.1);
Tailwind
colors: {
  custom: {
    50: '#cec175',
    500: '#b4a838',
    950: '#000000',
  },
}
SCSS
$custom: #b4a838;
$custom-light: #cec175;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a838",
  "rgb": {
    "r": 180,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 54.194,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.72127,
    "c": 0.13042,
    "h": 103.1
  },
  "luminance": 0.37994
}

Semantic roles & 50–950 ramp

primary
#B4A838
secondary
#8289C5
accent
#5ADC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A838

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

Preview Lab → · Contrast checker → · Palette generator →

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