#B2AF28#B2AF28

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

Color values

HEX#B2AF28
RGBrgb(178, 175, 40)
HSLhsl(59, 63%, 43%)
HSVhsv(59, 78%, 70%)
CMYKcmyk(0%, 1.7%, 77.5%, 30.2%)
CIE-LABlab(69.67, -14.06, 63.98)
CIE-LCHlch(69.67, 65.51, 102.40°)
OKLaboklab(73.37% -0.0458 0.1395)
OKLCHoklch(73.37% 0.147 108.2)
XYZxyz(34.0744, 40.2793, 7.9868)
Luminance0.4028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF28 #282BB2
analogous
#B26A28 #B2AF28 #70B228
triadic
#B2AF28 #28B2AF #AF28B2
tetradic
#B2AF28 #28B26A #282BB2 #B22870
square
#B2AF28 #28B26A #282BB2 #B22870
split-complementary
#B2AF28 #2870B2 #6A28B2
monochromatic
#4E4D12 #807E1D #B2AF28 #D5D143 #E0DE75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF28#FFFFFF#000000##000000
##B2AF281.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)
#BEA800
Deuteranopia (green-blind)
#C0AC33
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af28;
/* rgb */ color: rgb(178, 175, 40);
/* oklch */ color: oklch(73.4% 0.147 108.2);
Tailwind
colors: {
  custom: {
    50: '#cdc66e',
    500: '#b2af28',
    950: '#000000',
  },
}
SCSS
$custom: #b2af28;
$custom-light: #cdc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af28",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 58.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.7337,
    "c": 0.1468,
    "h": 108.2
  },
  "luminance": 0.40278
}

Semantic roles & 50–950 ramp

primary
#B2AF28
secondary
#6F70C7
accent
#45E641
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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