#B2AF27#B2AF27

#B2AF27 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.05:1 contrast (WCAG AA passes).

Color values

HEX#B2AF27
RGBrgb(178, 175, 39)
HSLhsl(59, 64%, 43%)
HSVhsv(59, 78%, 70%)
CMYKcmyk(0%, 1.7%, 78.1%, 30.2%)
CIE-LABlab(69.66, -14.10, 64.28)
CIE-LCHlch(69.66, 65.81, 102.37°)
OKLaboklab(73.36% -0.046 0.1399)
OKLCHoklch(73.36% 0.147 108.2)
XYZxyz(34.0576, 40.2726, 7.8984)
Luminance0.4027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF27 #272AB2
analogous
#B26927 #B2AF27 #70B227
triadic
#B2AF27 #27B2AF #AF27B2
tetradic
#B2AF27 #27B269 #272AB2 #B22770
square
#B2AF27 #27B269 #272AB2 #B22770
split-complementary
#B2AF27 #2770B2 #6927B2
monochromatic
#4E4C11 #807E1C #B2AF27 #D5D241 #E0DE73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF27#FFFFFF#000000##000000
##B2AF271.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)
#C0AC33
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af27;
/* rgb */ color: rgb(178, 175, 39);
/* oklch */ color: oklch(73.4% 0.147 108.2);
Tailwind
colors: {
  custom: {
    50: '#cdc66d',
    500: '#b2af27',
    950: '#000000',
  },
}
SCSS
$custom: #b2af27;
$custom-light: #cdc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af27",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 58.705,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73364,
    "c": 0.1473,
    "h": 108.2
  },
  "luminance": 0.40271
}

Semantic roles & 50–950 ramp

primary
#B2AF27
secondary
#6D6FC8
accent
#44E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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