#B2AF29#B2AF29

#B2AF29 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.4% C 0.146 H 108.2°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#B2AF29
RGBrgb(178, 175, 41)
HSLhsl(59, 63%, 43%)
HSVhsv(59, 77%, 70%)
CMYKcmyk(0%, 1.7%, 77%, 30.2%)
CIE-LABlab(69.67, -14.02, 63.67)
CIE-LCHlch(69.67, 65.20, 102.42°)
OKLaboklab(73.38% -0.0457 0.139)
OKLCHoklch(73.38% 0.146 108.2)
XYZxyz(34.0917, 40.2862, 8.0776)
Luminance0.4028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF29 #292CB2
analogous
#B26A29 #B2AF29 #70B229
triadic
#B2AF29 #29B2AF #AF29B2
tetradic
#B2AF29 #29B26A #292CB2 #B22970
square
#B2AF29 #29B26A #292CB2 #B22970
split-complementary
#B2AF29 #2970B2 #6A29B2
monochromatic
#4F4D12 #807E1E #B2AF29 #D4D144 #DFDD76

Accessibility & contrast

On white

2.32
#B2AF29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#B2AF29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF29
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF29#FFFFFF#000000##000000
##B2AF291.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA803
Deuteranopia (green-blind)
#C0AC34
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af29;
/* rgb */ color: rgb(178, 175, 41);
/* oklch */ color: oklch(73.4% 0.146 108.2);
Tailwind
colors: {
  custom: {
    50: '#cdc66e',
    500: '#b2af29',
    950: '#000000',
  },
}
SCSS
$custom: #b2af29;
$custom-light: #cdc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af29",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 41
  },
  "hsl": {
    "h": 58.686,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73375,
    "c": 0.14629,
    "h": 108.2
  },
  "luminance": 0.40285
}

Semantic roles & 50–950 ramp

primary
#B2AF29
secondary
#7072C7
accent
#46E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF29

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

Preview Lab → · Contrast checker → · Palette generator →

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