#B4A040#B4A040

#B4A040 is a light, moderate yellow. Relative luminance 0.352; OKLCH L 70.5% C 0.117 H 97.5°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B4A040
RGBrgb(180, 160, 64)
HSLhsl(50, 48%, 48%)
HSVhsv(50, 64%, 71%)
CMYKcmyk(0%, 11.1%, 64.4%, 29.4%)
CIE-LABlab(65.92, -4.10, 51.17)
CIE-LCHlch(65.92, 51.33, 94.58°)
OKLaboklab(70.48% -0.0153 0.1165)
OKLCHoklch(70.48% 0.117 97.5)
XYZxyz(32.3200, 35.2166, 9.9446)
Luminance0.3522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A040 #4054B4
analogous
#B46640 #B4A040 #8EB440
triadic
#B4A040 #40B4A0 #A040B4
tetradic
#B4A040 #40B466 #4054B4 #B4408E
square
#B4A040 #40B466 #4054B4 #B4408E
split-complementary
#B4A040 #408EB4 #6640B4
monochromatic
#5A5020 #877830 #B4A040 #C9B868 #D9CE95

Accessibility & contrast

On white

2.61
#B4A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B4A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A040
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A040#FFFFFF#000000##000000
##B4A0401.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C35
Deuteranopia (green-blind)
#B4A345
Tritanopia (blue-blind)
#C2958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b4a040;
/* rgb */ color: rgb(180, 160, 64);
/* oklch */ color: oklch(70.5% 0.117 97.5);
Tailwind
colors: {
  custom: {
    50: '#cdbb79',
    500: '#b4a040',
    950: '#000000',
  },
}
SCSS
$custom: #b4a040;
$custom-light: #cdbb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a040",
  "rgb": {
    "r": 180,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 49.655,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70481,
    "c": 0.11749,
    "h": 97.5
  },
  "luminance": 0.35215
}

Semantic roles & 50–950 ramp

primary
#B4A040
secondary
#8B95C5
accent
#68D751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B4A040

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

Preview Lab → · Contrast checker → · Palette generator →

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