#B4AF1B#B4AF1B

#B4AF1B is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.5% C 0.152 H 107.5°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#B4AF1B
RGBrgb(180, 175, 27)
HSLhsl(58, 74%, 41%)
HSVhsv(58, 85%, 71%)
CMYKcmyk(0%, 2.8%, 85%, 29.4%)
CIE-LABlab(69.78, -13.60, 67.66)
CIE-LCHlch(69.78, 69.01, 101.37°)
OKLaboklab(73.49% -0.0456 0.1449)
OKLCHoklch(73.49% 0.152 107.5)
XYZxyz(34.3517, 40.4436, 7.0336)
Luminance0.4044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF1B #1B20B4
analogous
#B4621B #B4AF1B #6CB41B
triadic
#B4AF1B #1BB4AF #AF1BB4
tetradic
#B4AF1B #1BB462 #1B20B4 #B41B6C
square
#B4AF1B #1BB462 #1B20B4 #B41B6C
split-complementary
#B4AF1B #1B6CB4 #621BB4
monochromatic
#4A480B #7F7B13 #B4AF1B #DFDA2D #E7E362

Accessibility & contrast

On white

2.31
#B4AF1B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#B4AF1B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF1B
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF1B#FFFFFF#000000##000000
##B4AF1B1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#C1AD2A
Tritanopia (blue-blind)
#C2A395
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b4af1b;
/* rgb */ color: rgb(180, 175, 27);
/* oklch */ color: oklch(73.5% 0.152 107.5);
Tailwind
colors: {
  custom: {
    50: '#cfc669',
    500: '#b4af1b',
    950: '#000000',
  },
}
SCSS
$custom: #b4af1b;
$custom-light: #cfc669;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af1b",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 27
  },
  "hsl": {
    "h": 58.039,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.73487,
    "c": 0.15195,
    "h": 107.5
  },
  "luminance": 0.40442
}

Semantic roles & 50–950 ramp

primary
#B4AF1B
secondary
#5F62CC
accent
#3DF137
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B4AF1B

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

Preview Lab → · Contrast checker → · Palette generator →

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