#B2AA2F#B2AA2F

#B2AA2F is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.138 H 105.6°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#B2AA2F
RGBrgb(178, 170, 47)
HSLhsl(56, 58%, 44%)
HSVhsv(56, 74%, 70%)
CMYKcmyk(0%, 4.5%, 73.6%, 30.2%)
CIE-LABlab(68.33, -11.19, 60.41)
CIE-LCHlch(68.33, 61.44, 100.49°)
OKLaboklab(72.32% -0.0371 0.1332)
OKLCHoklch(72.32% 0.138 105.6)
XYZxyz(33.2493, 38.4209, 8.3533)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AA2F #2F37B2
analogous
#B2692F #B2AA2F #79B22F
triadic
#B2AA2F #2FB2AA #AA2FB2
tetradic
#B2AA2F #2FB269 #2F37B2 #B22F79
square
#B2AA2F #2FB269 #2F37B2 #B22F79
split-complementary
#B2AA2F #2F79B2 #692FB2
monochromatic
#514E15 #827C22 #B2AA2F #D0C84E #DDD77E

Accessibility & contrast

On white

2.42
#B2AA2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#B2AA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AA2F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AA2F#FFFFFF#000000##000000
##B2AA2F1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A417
Deuteranopia (green-blind)
#BCA938
Tritanopia (blue-blind)
#BF9E92
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2aa2f;
/* rgb */ color: rgb(178, 170, 47);
/* oklch */ color: oklch(72.3% 0.138 105.6);
Tailwind
colors: {
  custom: {
    50: '#cdc371',
    500: '#b2aa2f',
    950: '#000000',
  },
}
SCSS
$custom: #b2aa2f;
$custom-light: #cdc371;
$custom-dark: #000000;
JSON
{
  "hex": "#b2aa2f",
  "rgb": {
    "r": 178,
    "g": 170,
    "b": 47
  },
  "hsl": {
    "h": 56.336,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72315,
    "c": 0.13826,
    "h": 105.6
  },
  "luminance": 0.3842
}

Semantic roles & 50–950 ramp

primary
#B2AA2F
secondary
#777CC6
accent
#50E146
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2AA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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