#B3AF20#B3AF20

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

Color values

HEX#B3AF20
RGBrgb(179, 175, 32)
HSLhsl(58, 70%, 41%)
HSVhsv(58, 82%, 70%)
CMYKcmyk(0%, 2.2%, 82.1%, 29.8%)
CIE-LABlab(69.72, -13.90, 66.34)
CIE-LCHlch(69.72, 67.78, 101.84°)
OKLaboklab(73.42% -0.0461 0.143)
OKLCHoklch(73.42% 0.15 107.9)
XYZxyz(34.1825, 40.3491, 7.3538)
Luminance0.4035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF20 #2024B3
analogous
#B36620 #B3AF20 #6EB320
triadic
#B3AF20 #20B3AF #AF20B3
tetradic
#B3AF20 #20B366 #2024B3 #B3206E
square
#B3AF20 #20B366 #2024B3 #B3206E
split-complementary
#B3AF20 #206EB3 #6620B3
monochromatic
#4B490D #7F7C17 #B3AF20 #DBD635 #E4E169

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF20#FFFFFF#000000##000000
##B3AF201.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)
#BEA800
Deuteranopia (green-blind)
#C1AD2E
Tritanopia (blue-blind)
#C1A396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af20;
/* rgb */ color: rgb(179, 175, 32);
/* oklch */ color: oklch(73.4% 0.150 107.9);
Tailwind
colors: {
  custom: {
    50: '#cec66b',
    500: '#b3af20',
    950: '#000000',
  },
}
SCSS
$custom: #b3af20;
$custom-light: #cec66b;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af20",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 32
  },
  "hsl": {
    "h": 58.367,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.73419,
    "c": 0.15024,
    "h": 107.9
  },
  "luminance": 0.40348
}

Semantic roles & 50–950 ramp

primary
#B3AF20
secondary
#6568CA
accent
#40EC3B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B3AF20

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

Preview Lab → · Contrast checker → · Palette generator →

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