#B3AF38#B3AF38

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

Color values

HEX#B3AF38
RGBrgb(179, 175, 56)
HSLhsl(58, 52%, 46%)
HSVhsv(58, 69%, 70%)
CMYKcmyk(0%, 2.2%, 68.7%, 29.8%)
CIE-LABlab(69.85, -12.89, 58.57)
CIE-LCHlch(69.85, 59.97, 102.41°)
OKLaboklab(73.56% -0.0411 0.1309)
OKLCHoklch(73.56% 0.137 107.4)
XYZxyz(34.6355, 40.5303, 9.7393)
Luminance0.4053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF38 #383CB3
analogous
#B37138 #B3AF38 #79B338
triadic
#B3AF38 #38B3AF #AF38B3
tetradic
#B3AF38 #38B371 #383CB3 #B33879
square
#B3AF38 #38B371 #383CB3 #B33879
split-complementary
#B3AF38 #3879B3 #7138B3
monochromatic
#56541B #848129 #B3AF38 #CCC85C #DBD88B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF38#FFFFFF#000000##000000
##B3AF381.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)
#BDA826
Deuteranopia (green-blind)
#C0AD40
Tritanopia (blue-blind)
#C0A497
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b3af38;
/* rgb */ color: rgb(179, 175, 56);
/* oklch */ color: oklch(73.6% 0.137 107.4);
Tailwind
colors: {
  custom: {
    50: '#cdc676',
    500: '#b3af38',
    950: '#000000',
  },
}
SCSS
$custom: #b3af38;
$custom-light: #cdc676;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af38",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 58.049,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73562,
    "c": 0.13715,
    "h": 107.4
  },
  "luminance": 0.40529
}

Semantic roles & 50–950 ramp

primary
#B3AF38
secondary
#8284C5
accent
#51DC4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B3AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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