#B2AF2D#B2AF2D

#B2AF2D 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#B2AF2D
RGBrgb(178, 175, 45)
HSLhsl(59, 60%, 44%)
HSVhsv(59, 75%, 70%)
CMYKcmyk(0%, 1.7%, 74.7%, 30.2%)
CIE-LABlab(69.69, -13.86, 62.39)
CIE-LCHlch(69.69, 63.91, 102.52°)
OKLaboklab(73.4% -0.0448 0.137)
OKLCHoklch(73.4% 0.144 108.1)
XYZxyz(34.1650, 40.3155, 8.4641)
Luminance0.4031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF2D #2D30B2
analogous
#B26C2D #B2AF2D #72B22D
triadic
#B2AF2D #2DB2AF #AF2DB2
tetradic
#B2AF2D #2DB26C #2D30B2 #B22D72
square
#B2AF2D #2DB26C #2D30B2 #B22D72
split-complementary
#B2AF2D #2D72B2 #6C2DB2
monochromatic
#504F14 #817F21 #B2AF2D #D1CE4B #DEDC7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2AF2D#FFFFFF#000000##000000
##B2AF2D1.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)
#BEA810
Deuteranopia (green-blind)
#C0AC37
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af2d;
/* rgb */ color: rgb(178, 175, 45);
/* oklch */ color: oklch(73.4% 0.144 108.1);
Tailwind
colors: {
  custom: {
    50: '#cdc670',
    500: '#b2af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b2af2d;
$custom-light: #cdc670;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af2d",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 58.647,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73398,
    "c": 0.14415,
    "h": 108.1
  },
  "luminance": 0.40314
}

Semantic roles & 50–950 ramp

primary
#B2AF2D
secondary
#7576C6
accent
#49E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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