#B3AF2F#B3AF2F

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

Color values

HEX#B3AF2F
RGBrgb(179, 175, 47)
HSLhsl(58, 58%, 44%)
HSVhsv(58, 74%, 70%)
CMYKcmyk(0%, 2.2%, 73.7%, 29.8%)
CIE-LABlab(69.79, -13.34, 61.83)
CIE-LCHlch(69.79, 63.25, 102.17°)
OKLaboklab(73.5% -0.0432 0.1361)
OKLCHoklch(73.5% 0.143 107.6)
XYZxyz(34.4348, 40.4501, 8.6825)
Luminance0.4045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF2F #2F33B3
analogous
#B36D2F #B3AF2F #75B32F
triadic
#B3AF2F #2FB3AF #AF2FB3
tetradic
#B3AF2F #2FB36D #2F33B3 #B32F75
square
#B3AF2F #2FB36D #2F33B3 #B32F75
split-complementary
#B3AF2F #2F75B3 #6D2FB3
monochromatic
#525016 #838022 #B3AF2F #D1CD4F #DDDB7F

Accessibility & contrast

On white

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

On black

9.09
#B3AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3AF2F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3AF2F#FFFFFF#000000##000000
##B3AF2F1.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b3af2f;
/* rgb */ color: rgb(179, 175, 47);
/* oklch */ color: oklch(73.5% 0.143 107.6);
Tailwind
colors: {
  custom: {
    50: '#cdc671',
    500: '#b3af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b3af2f;
$custom-light: #cdc671;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af2f",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 58.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73498,
    "c": 0.14284,
    "h": 107.6
  },
  "luminance": 0.40449
}

Semantic roles & 50–950 ramp

primary
#B3AF2F
secondary
#787AC6
accent
#4BE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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