#B3AF34#B3AF34

#B3AF34 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.140 H 107.5°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#B3AF34
RGBrgb(179, 175, 52)
HSLhsl(58, 55%, 45%)
HSVhsv(58, 71%, 70%)
CMYKcmyk(0%, 2.2%, 70.9%, 29.8%)
CIE-LABlab(69.82, -13.10, 60.06)
CIE-LCHlch(69.82, 61.47, 102.30°)
OKLaboklab(73.53% -0.0421 0.1333)
OKLCHoklch(73.53% 0.14 107.5)
XYZxyz(34.5415, 40.4927, 9.2445)
Luminance0.4049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF34 #3438B3
analogous
#B36F34 #B3AF34 #78B334
triadic
#B3AF34 #34B3AF #AF34B3
tetradic
#B3AF34 #34B36F #3438B3 #B33478
square
#B3AF34 #34B36F #3438B3 #B33478
split-complementary
#B3AF34 #3478B3 #6F34B3
monochromatic
#545218 #848126 #B3AF34 #CECA56 #DCD986

Accessibility & contrast

On white

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

On black

9.10
#B3AF34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3AF34
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3AF34#FFFFFF#000000##000000
##B3AF341.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b3af34;
/* rgb */ color: rgb(179, 175, 52);
/* oklch */ color: oklch(73.5% 0.140 107.5);
Tailwind
colors: {
  custom: {
    50: '#cdc674',
    500: '#b3af34',
    950: '#000000',
  },
}
SCSS
$custom: #b3af34;
$custom-light: #cdc674;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af34",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 58.11,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73532,
    "c": 0.1398,
    "h": 107.5
  },
  "luminance": 0.40492
}

Semantic roles & 50–950 ramp

primary
#B3AF34
secondary
#7D80C5
accent
#4EDE49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B3AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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