#B2AF2A#B2AF2A

#B2AF2A 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#B2AF2A
RGBrgb(178, 175, 42)
HSLhsl(59, 62%, 43%)
HSVhsv(59, 76%, 70%)
CMYKcmyk(0%, 1.7%, 76.4%, 30.2%)
CIE-LABlab(69.68, -13.99, 63.36)
CIE-LCHlch(69.68, 64.89, 102.45°)
OKLaboklab(73.38% -0.0454 0.1385)
OKLCHoklch(73.38% 0.146 108.2)
XYZxyz(34.1093, 40.2932, 8.1707)
Luminance0.4029 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF2A #2A2DB2
analogous
#B26B2A #B2AF2A #71B22A
triadic
#B2AF2A #2AB2AF #AF2AB2
tetradic
#B2AF2A #2AB26B #2A2DB2 #B22A71
square
#B2AF2A #2AB26B #2A2DB2 #B22A71
split-complementary
#B2AF2A #2A71B2 #6B2AB2
monochromatic
#4F4E13 #807E1E #B2AF2A #D3D046 #DFDD77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF2A#FFFFFF#000000##000000
##B2AF2A1.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)
#BEA807
Deuteranopia (green-blind)
#C0AC35
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af2a;
/* rgb */ color: rgb(178, 175, 42);
/* oklch */ color: oklch(73.4% 0.146 108.2);
Tailwind
colors: {
  custom: {
    50: '#cdc66f',
    500: '#b2af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b2af2a;
$custom-light: #cdc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af2a",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 58.676,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73381,
    "c": 0.14578,
    "h": 108.2
  },
  "luminance": 0.40292
}

Semantic roles & 50–950 ramp

primary
#B2AF2A
secondary
#7173C7
accent
#46E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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