#B3AF1F#B3AF1F

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

Color values

HEX#B3AF1F
RGBrgb(179, 175, 31)
HSLhsl(58, 70%, 41%)
HSVhsv(58, 83%, 70%)
CMYKcmyk(0%, 2.2%, 82.7%, 29.8%)
CIE-LABlab(69.71, -13.93, 66.60)
CIE-LCHlch(69.71, 68.04, 101.82°)
OKLaboklab(73.41% -0.0462 0.1434)
OKLCHoklch(73.41% 0.151 107.9)
XYZxyz(34.1691, 40.3438, 7.2833)
Luminance0.4034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF1F #1F23B3
analogous
#B3651F #B3AF1F #6DB31F
triadic
#B3AF1F #1FB3AF #AF1FB3
tetradic
#B3AF1F #1FB365 #1F23B3 #B31F6D
square
#B3AF1F #1FB365 #1F23B3 #B31F6D
split-complementary
#B3AF1F #1F6DB3 #651FB3
monochromatic
#4B490D #7F7C16 #B3AF1F #DCD733 #E5E168

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF1F#FFFFFF#000000##000000
##B3AF1F1.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)
#C1AC2D
Tritanopia (blue-blind)
#C1A395
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af1f;
/* rgb */ color: rgb(179, 175, 31);
/* oklch */ color: oklch(73.4% 0.151 107.9);
Tailwind
colors: {
  custom: {
    50: '#cec66a',
    500: '#b3af1f',
    950: '#000000',
  },
}
SCSS
$custom: #b3af1f;
$custom-light: #cec66a;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af1f",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 31
  },
  "hsl": {
    "h": 58.378,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.73414,
    "c": 0.15064,
    "h": 107.9
  },
  "luminance": 0.40343
}

Semantic roles & 50–950 ramp

primary
#B3AF1F
secondary
#6466CA
accent
#3FED3B
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A

Preview Lab

Preview with #B3AF1F

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

Preview Lab → · Contrast checker → · Palette generator →

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