#B4AF34#B4AF34

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

Color values

HEX#B4AF34
RGBrgb(180, 175, 52)
HSLhsl(58, 55%, 45%)
HSVhsv(58, 71%, 71%)
CMYKcmyk(0%, 2.8%, 71.1%, 29.4%)
CIE-LABlab(69.90, -12.67, 60.17)
CIE-LCHlch(69.90, 61.49, 101.89°)
OKLaboklab(73.62% -0.0409 0.1335)
OKLCHoklch(73.62% 0.14 107)
XYZxyz(34.7735, 40.6124, 9.2554)
Luminance0.4061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF34 #3439B4
analogous
#B46F34 #B4AF34 #79B434
triadic
#B4AF34 #34B4AF #AF34B4
tetradic
#B4AF34 #34B46F #3439B4 #B43479
square
#B4AF34 #34B46F #3439B4 #B43479
split-complementary
#B4AF34 #3479B4 #6F34B4
monochromatic
#555319 #858126 #B4AF34 #CECA57 #DCD986

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4AF34#FFFFFF#000000##000000
##B4AF341.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)
#BEA81F
Deuteranopia (green-blind)
#C0AD3D
Tritanopia (blue-blind)
#C1A397
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af34;
/* rgb */ color: rgb(180, 175, 52);
/* oklch */ color: oklch(73.6% 0.140 107.0);
Tailwind
colors: {
  custom: {
    50: '#cec674',
    500: '#b4af34',
    950: '#000000',
  },
}
SCSS
$custom: #b4af34;
$custom-light: #cec674;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af34",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 57.656,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.7362,
    "c": 0.13964,
    "h": 107
  },
  "luminance": 0.40611
}

Semantic roles & 50–950 ramp

primary
#B4AF34
secondary
#7E81C6
accent
#4FDF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B4AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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