#B4AF30#B4AF30

#B4AF30 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.6% C 0.142 H 107.1°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#B4AF30
RGBrgb(180, 175, 48)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 73%, 71%)
CMYKcmyk(0%, 2.8%, 73.3%, 29.4%)
CIE-LABlab(69.88, -12.86, 61.59)
CIE-LCHlch(69.88, 62.92, 101.79°)
OKLaboklab(73.59% -0.0419 0.1358)
OKLCHoklch(73.59% 0.142 107.1)
XYZxyz(34.6872, 40.5778, 8.8009)
Luminance0.4058 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF30 #3035B4
analogous
#B46D30 #B4AF30 #77B430
triadic
#B4AF30 #30B4AF #AF30B4
tetradic
#B4AF30 #30B46D #3035B4 #B43077
square
#B4AF30 #30B46D #3035B4 #B43077
split-complementary
#B4AF30 #3077B4 #6D30B4
monochromatic
#535116 #848023 #B4AF30 #D1CC51 #DDDA81

Accessibility & contrast

On white

2.30
#B4AF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#B4AF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF30
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF30#FFFFFF#000000##000000
##B4AF301.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA817
Deuteranopia (green-blind)
#C0AD3A
Tritanopia (blue-blind)
#C1A397
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af30;
/* rgb */ color: rgb(180, 175, 48);
/* oklch */ color: oklch(73.6% 0.142 107.1);
Tailwind
colors: {
  custom: {
    50: '#cec672',
    500: '#b4af30',
    950: '#000000',
  },
}
SCSS
$custom: #b4af30;
$custom-light: #cec672;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af30",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 57.727,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73593,
    "c": 0.1421,
    "h": 107.1
  },
  "luminance": 0.40577
}

Semantic roles & 50–950 ramp

primary
#B4AF30
secondary
#797CC6
accent
#4DE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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