#B3AF28#B3AF28

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

Color values

HEX#B3AF28
RGBrgb(179, 175, 40)
HSLhsl(58, 63%, 43%)
HSVhsv(58, 78%, 70%)
CMYKcmyk(0%, 2.2%, 77.7%, 29.8%)
CIE-LABlab(69.75, -13.63, 64.09)
CIE-LCHlch(69.75, 65.52, 102.00°)
OKLaboklab(73.46% -0.0447 0.1397)
OKLCHoklch(73.46% 0.147 107.7)
XYZxyz(34.3048, 40.3980, 7.9976)
Luminance0.4040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF28 #282CB3
analogous
#B36928 #B3AF28 #72B328
triadic
#B3AF28 #28B3AF #AF28B3
tetradic
#B3AF28 #28B369 #282CB3 #B32872
square
#B3AF28 #28B369 #282CB3 #B32872
split-complementary
#B3AF28 #2872B3 #6928B3
monochromatic
#4F4D12 #817E1D #B3AF28 #D5D143 #E0DD75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF28#FFFFFF#000000##000000
##B3AF281.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)
#BEA800
Deuteranopia (green-blind)
#C0AD33
Tritanopia (blue-blind)
#C0A396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af28;
/* rgb */ color: rgb(179, 175, 40);
/* oklch */ color: oklch(73.5% 0.147 107.7);
Tailwind
colors: {
  custom: {
    50: '#cec66e',
    500: '#b3af28',
    950: '#000000',
  },
}
SCSS
$custom: #b3af28;
$custom-light: #cec66e;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af28",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 58.273,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73457,
    "c": 0.14662,
    "h": 107.7
  },
  "luminance": 0.40397
}

Semantic roles & 50–950 ramp

primary
#B3AF28
secondary
#6F72C8
accent
#46E641
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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