#B2AF25#B2AF25

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

Color values

HEX#B2AF25
RGBrgb(178, 175, 37)
HSLhsl(59, 66%, 42%)
HSVhsv(59, 79%, 70%)
CMYKcmyk(0%, 1.7%, 79.2%, 30.2%)
CIE-LABlab(69.65, -14.17, 64.87)
CIE-LCHlch(69.65, 66.40, 102.33°)
OKLaboklab(73.35% -0.0464 0.1408)
OKLCHoklch(73.35% 0.148 108.2)
XYZxyz(34.0254, 40.2596, 7.7285)
Luminance0.4026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF25 #2528B2
analogous
#B26825 #B2AF25 #6FB225
triadic
#B2AF25 #25B2AF #AF25B2
tetradic
#B2AF25 #25B268 #2528B2 #B2256F
square
#B2AF25 #25B268 #2528B2 #B2256F
split-complementary
#B2AF25 #256FB2 #6825B2
monochromatic
#4D4B10 #7F7D1A #B2AF25 #D7D43D #E1DF70

Accessibility & contrast

On white

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

On black

9.05
#B2AF25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF25
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF25#FFFFFF#000000##000000
##B2AF251.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2af25;
/* rgb */ color: rgb(178, 175, 37);
/* oklch */ color: oklch(73.4% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#cdc66d',
    500: '#b2af25',
    950: '#000000',
  },
}
SCSS
$custom: #b2af25;
$custom-light: #cdc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af25",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 37
  },
  "hsl": {
    "h": 58.723,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.73354,
    "c": 0.14825,
    "h": 108.2
  },
  "luminance": 0.40258
}

Semantic roles & 50–950 ramp

primary
#B2AF25
secondary
#6B6DC8
accent
#43E93F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141308
muted
#83827A

Preview Lab

Preview with #B2AF25

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

Preview Lab → · Contrast checker → · Palette generator →

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