#B4A538#B4A538

#B4A538 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.128 H 101.4°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B4A538
RGBrgb(180, 165, 56)
HSLhsl(53, 53%, 46%)
HSVhsv(53, 69%, 71%)
CMYKcmyk(0%, 8.3%, 68.9%, 29.4%)
CIE-LABlab(67.20, -7.23, 55.93)
CIE-LCHlch(67.20, 56.39, 97.37°)
OKLaboklab(71.48% -0.0252 0.1253)
OKLCHoklch(71.48% 0.128 101.4)
XYZxyz(32.9928, 36.9005, 9.1253)
Luminance0.3690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A538 #3847B4
analogous
#B46738 #B4A538 #85B438
triadic
#B4A538 #38B4A5 #A538B4
tetradic
#B4A538 #38B467 #3847B4 #B43885
square
#B4A538 #38B467 #3847B4 #B43885
split-complementary
#B4A538 #3885B4 #6738B4
monochromatic
#574F1B #857A29 #B4A538 #CDBF5D #DBD18B

Accessibility & contrast

On white

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

On black

8.38
#B4A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A538
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A538#FFFFFF#000000##000000
##B4A5381.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b4a538;
/* rgb */ color: rgb(180, 165, 56);
/* oklch */ color: oklch(71.5% 0.128 101.4);
Tailwind
colors: {
  custom: {
    50: '#cebf75',
    500: '#b4a538',
    950: '#000000',
  },
}
SCSS
$custom: #b4a538;
$custom-light: #cebf75;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a538",
  "rgb": {
    "r": 180,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 52.742,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71479,
    "c": 0.12775,
    "h": 101.4
  },
  "luminance": 0.36899
}

Semantic roles & 50–950 ramp

primary
#B4A538
secondary
#828BC5
accent
#5DDC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B4A538

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

Preview Lab → · Contrast checker → · Palette generator →

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