#B4AF2B#B4AF2B

#B4AF2B is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.6% C 0.145 H 107.2°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#B4AF2B
RGBrgb(180, 175, 43)
HSLhsl(58, 61%, 44%)
HSVhsv(58, 76%, 71%)
CMYKcmyk(0%, 2.8%, 76.1%, 29.4%)
CIE-LABlab(69.85, -13.07, 63.26)
CIE-LCHlch(69.85, 64.60, 101.68°)
OKLaboklab(73.56% -0.0429 0.1384)
OKLCHoklch(73.56% 0.145 107.2)
XYZxyz(34.5898, 40.5389, 8.2878)
Luminance0.4054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4AF2B #2B30B4
analogous
#B46A2B #B4AF2B #74B42B
triadic
#B4AF2B #2BB4AF #AF2BB4
tetradic
#B4AF2B #2BB46A #2B30B4 #B42B74
square
#B4AF2B #2BB46A #2B30B4 #B42B74
split-complementary
#B4AF2B #2B74B4 #6A2BB4
monochromatic
#514F13 #837F1F #B4AF2B #D3CE49 #DFDC7A

Accessibility & contrast

On white

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

On black

9.11
#B4AF2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B4AF2B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4AF2B#FFFFFF#000000##000000
##B4AF2B1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA80A
Deuteranopia (green-blind)
#C1AD36
Tritanopia (blue-blind)
#C1A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b4af2b;
/* rgb */ color: rgb(180, 175, 43);
/* oklch */ color: oklch(73.6% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#cec66f',
    500: '#b4af2b',
    950: '#000000',
  },
}
SCSS
$custom: #b4af2b;
$custom-light: #cec66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b4af2b",
  "rgb": {
    "r": 180,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 57.81,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73562,
    "c": 0.1449,
    "h": 107.2
  },
  "luminance": 0.40538
}

Semantic roles & 50–950 ramp

primary
#B4AF2B
secondary
#7376C7
accent
#49E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B4AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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