#B3AF3A#B3AF3A

#B3AF3A is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.6% C 0.136 H 107.4°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#B3AF3A
RGBrgb(179, 175, 58)
HSLhsl(58, 51%, 46%)
HSVhsv(58, 68%, 70%)
CMYKcmyk(0%, 2.2%, 67.6%, 29.8%)
CIE-LABlab(69.86, -12.78, 57.79)
CIE-LCHlch(69.86, 59.19, 102.47°)
OKLaboklab(73.58% -0.0406 0.1296)
OKLCHoklch(73.58% 0.136 107.4)
XYZxyz(34.6854, 40.5503, 10.0021)
Luminance0.4055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF3A #3A3EB3
analogous
#B3733A #B3AF3A #7BB33A
triadic
#B3AF3A #3AB3AF #AF3AB3
tetradic
#B3AF3A #3AB373 #3A3EB3 #B33A7B
square
#B3AF3A #3AB373 #3A3EB3 #B33A7B
split-complementary
#B3AF3A #3A7BB3 #733AB3
monochromatic
#57551C #85822B #B3AF3A #CBC85F #DAD88D

Accessibility & contrast

On white

2.31
#B3AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#B3AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3AF3A
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3AF3A#FFFFFF#000000##000000
##B3AF3A1.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA829
Deuteranopia (green-blind)
#C0AD42
Tritanopia (blue-blind)
#C0A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b3af3a;
/* rgb */ color: rgb(179, 175, 58);
/* oklch */ color: oklch(73.6% 0.136 107.4);
Tailwind
colors: {
  custom: {
    50: '#cdc677',
    500: '#b3af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b3af3a;
$custom-light: #cdc677;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af3a",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 58.017,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.73577,
    "c": 0.13577,
    "h": 107.4
  },
  "luminance": 0.40549
}

Semantic roles & 50–950 ramp

primary
#B3AF3A
secondary
#8486C5
accent
#52DB4D
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B3AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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