#B3AF2A#B3AF2A

#B3AF2A is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.5% C 0.146 H 107.7°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#B3AF2A
RGBrgb(179, 175, 42)
HSLhsl(58, 62%, 43%)
HSVhsv(58, 77%, 70%)
CMYKcmyk(0%, 2.2%, 76.5%, 29.8%)
CIE-LABlab(69.76, -13.55, 63.47)
CIE-LCHlch(69.76, 64.90, 102.05°)
OKLaboklab(73.47% -0.0443 0.1387)
OKLCHoklch(73.47% 0.146 107.7)
XYZxyz(34.3397, 40.4120, 8.1815)
Luminance0.4041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF2A #2A2EB3
analogous
#B36A2A #B3AF2A #72B32A
triadic
#B3AF2A #2AB3AF #AF2AB3
tetradic
#B3AF2A #2AB36A #2A2EB3 #B32A72
square
#B3AF2A #2AB36A #2A2EB3 #B32A72
split-complementary
#B3AF2A #2A72B3 #6A2AB3
monochromatic
#504E13 #817F1E #B3AF2A #D4D046 #DFDC78

Accessibility & contrast

On white

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

On black

9.08
#B3AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3AF2A
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3AF2A#FFFFFF#000000##000000
##B3AF2A1.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA807
Deuteranopia (green-blind)
#C0AD35
Tritanopia (blue-blind)
#C0A396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af2a;
/* rgb */ color: rgb(179, 175, 42);
/* oklch */ color: oklch(73.5% 0.146 107.7);
Tailwind
colors: {
  custom: {
    50: '#cec66f',
    500: '#b3af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b3af2a;
$custom-light: #cec66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af2a",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 58.248,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.73468,
    "c": 0.1456,
    "h": 107.7
  },
  "luminance": 0.40411
}

Semantic roles & 50–950 ramp

primary
#B3AF2A
secondary
#7274C7
accent
#47E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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