#B2AF2F#B2AF2F

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

Color values

HEX#B2AF2F
RGBrgb(178, 175, 47)
HSLhsl(59, 58%, 44%)
HSVhsv(59, 74%, 70%)
CMYKcmyk(0%, 1.7%, 73.6%, 30.2%)
CIE-LABlab(69.70, -13.77, 61.72)
CIE-LCHlch(69.70, 63.24, 102.58°)
OKLaboklab(73.41% -0.0444 0.1359)
OKLCHoklch(73.41% 0.143 108.1)
XYZxyz(34.2045, 40.3313, 8.6717)
Luminance0.4033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF2F #2F32B2
analogous
#B26E2F #B2AF2F #74B22F
triadic
#B2AF2F #2FB2AF #AF2FB2
tetradic
#B2AF2F #2FB26E #2F32B2 #B22F74
square
#B2AF2F #2FB26E #2F32B2 #B22F74
split-complementary
#B2AF2F #2F74B2 #6E2FB2
monochromatic
#515015 #827F22 #B2AF2F #D0CD4E #DDDB7E

Accessibility & contrast

On white

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

On black

9.07
#B2AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF2F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF2F#FFFFFF#000000##000000
##B2AF2F1.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2af2f;
/* rgb */ color: rgb(178, 175, 47);
/* oklch */ color: oklch(73.4% 0.143 108.1);
Tailwind
colors: {
  custom: {
    50: '#cdc671',
    500: '#b2af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b2af2f;
$custom-light: #cdc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af2f",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 58.626,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73411,
    "c": 0.14301,
    "h": 108.1
  },
  "luminance": 0.4033
}

Semantic roles & 50–950 ramp

primary
#B2AF2F
secondary
#7779C6
accent
#4AE146
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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