#B2AF2E#B2AF2E

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

Color values

HEX#B2AF2E
RGBrgb(178, 175, 46)
HSLhsl(59, 59%, 44%)
HSVhsv(59, 74%, 70%)
CMYKcmyk(0%, 1.7%, 74.2%, 30.2%)
CIE-LABlab(69.70, -13.82, 62.06)
CIE-LCHlch(69.70, 63.58, 102.55°)
OKLaboklab(73.41% -0.0446 0.1365)
OKLCHoklch(73.41% 0.144 108.1)
XYZxyz(34.1845, 40.3233, 8.5667)
Luminance0.4032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF2E #2E31B2
analogous
#B26D2E #B2AF2E #73B22E
triadic
#B2AF2E #2EB2AF #AF2EB2
tetradic
#B2AF2E #2EB26D #2E31B2 #B22E73
square
#B2AF2E #2EB26D #2E31B2 #B22E73
split-complementary
#B2AF2E #2E73B2 #6D2EB2
monochromatic
#514F15 #817F21 #B2AF2E #D1CE4C #DDDB7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF2E#FFFFFF#000000##000000
##B2AF2E1.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)
#BEA813
Deuteranopia (green-blind)
#C0AC38
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af2e;
/* rgb */ color: rgb(178, 175, 46);
/* oklch */ color: oklch(73.4% 0.144 108.1);
Tailwind
colors: {
  custom: {
    50: '#cdc671',
    500: '#b2af2e',
    950: '#000000',
  },
}
SCSS
$custom: #b2af2e;
$custom-light: #cdc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af2e",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 58.636,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73405,
    "c": 0.14359,
    "h": 108.1
  },
  "luminance": 0.40322
}

Semantic roles & 50–950 ramp

primary
#B2AF2E
secondary
#7678C6
accent
#49E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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