#B2AF3A#B2AF3A

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

Color values

HEX#B2AF3A
RGBrgb(178, 175, 58)
HSLhsl(59, 51%, 46%)
HSVhsv(59, 67%, 70%)
CMYKcmyk(0%, 1.7%, 67.4%, 30.2%)
CIE-LABlab(69.78, -13.21, 57.68)
CIE-LCHlch(69.78, 59.17, 102.90°)
OKLaboklab(73.49% -0.0417 0.1294)
OKLCHoklch(73.49% 0.136 107.9)
XYZxyz(34.4550, 40.4315, 9.9913)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF3A #3A3DB2
analogous
#B2733A #B2AF3A #79B23A
triadic
#B2AF3A #3AB2AF #AF3AB2
tetradic
#B2AF3A #3AB273 #3A3DB2 #B23A79
square
#B2AF3A #3AB273 #3A3DB2 #B23A79
split-complementary
#B2AF3A #3A79B2 #733AB2
monochromatic
#56541C #84822B #B2AF3A #CBC85F #DAD88D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF3A#FFFFFF#000000##000000
##B2AF3A1.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)
#BDA829
Deuteranopia (green-blind)
#BFAC42
Tritanopia (blue-blind)
#BFA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af3a;
/* rgb */ color: rgb(178, 175, 58);
/* oklch */ color: oklch(73.5% 0.136 107.9);
Tailwind
colors: {
  custom: {
    50: '#ccc677',
    500: '#b2af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b2af3a;
$custom-light: #ccc677;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af3a",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 58.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.7349,
    "c": 0.13592,
    "h": 107.9
  },
  "luminance": 0.4043
}

Semantic roles & 50–950 ramp

primary
#B2AF3A
secondary
#8385C4
accent
#51DA4D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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