#B4A830#B4A830

#B4A830 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.1% C 0.136 H 103.5°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#B4A830
RGBrgb(180, 168, 48)
HSLhsl(55, 58%, 45%)
HSVhsv(55, 73%, 71%)
CMYKcmyk(0%, 6.7%, 73.3%, 29.4%)
CIE-LABlab(67.96, -9.22, 59.77)
CIE-LCHlch(67.96, 60.47, 98.77°)
OKLaboklab(72.07% -0.0316 0.1319)
OKLCHoklch(72.07% 0.136 103.5)
XYZxyz(33.3600, 37.9233, 8.3584)
Luminance0.3792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4A830 #303CB4
analogous
#B46630 #B4A830 #7EB430
triadic
#B4A830 #30B4A8 #A830B4
tetradic
#B4A830 #30B466 #303CB4 #B4307E
square
#B4A830 #30B466 #303CB4 #B4307E
split-complementary
#B4A830 #307EB4 #6630B4
monochromatic
#534E16 #847B23 #B4A830 #D1C551 #DDD581

Accessibility & contrast

On white

2.45
#B4A830 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#B4A830 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4A830
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4A830#FFFFFF#000000##000000
##B4A8301.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21A
Deuteranopia (green-blind)
#BBA838
Tritanopia (blue-blind)
#C29C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b4a830;
/* rgb */ color: rgb(180, 168, 48);
/* oklch */ color: oklch(72.1% 0.136 103.5);
Tailwind
colors: {
  custom: {
    50: '#cec171',
    500: '#b4a830',
    950: '#000000',
  },
}
SCSS
$custom: #b4a830;
$custom-light: #cec171;
$custom-dark: #000000;
JSON
{
  "hex": "#b4a830",
  "rgb": {
    "r": 180,
    "g": 168,
    "b": 48
  },
  "hsl": {
    "h": 54.545,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.72068,
    "c": 0.13566,
    "h": 103.5
  },
  "luminance": 0.37922
}

Semantic roles & 50–950 ramp

primary
#B4A830
secondary
#7980C6
accent
#55E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B4A830

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

Preview Lab → · Contrast checker → · Palette generator →

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