#B7AF2A#B7AF2A

#B7AF2A is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.145 H 105.9°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#B7AF2A
RGBrgb(183, 175, 42)
HSLhsl(57, 63%, 44%)
HSVhsv(57, 77%, 72%)
CMYKcmyk(0%, 4.4%, 77%, 28.2%)
CIE-LABlab(70.10, -11.80, 63.91)
CIE-LCHlch(70.10, 64.99, 100.47°)
OKLaboklab(73.82% -0.0396 0.1395)
OKLCHoklch(73.82% 0.145 105.9)
XYZxyz(35.2778, 40.8957, 8.2254)
Luminance0.4089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2A #2A32B7
analogous
#B7692A #B7AF2A #79B72A
triadic
#B7AF2A #2AB7AF #AF2AB7
tetradic
#B7AF2A #2AB769 #2A32B7 #B72A79
square
#B7AF2A #2AB769 #2A32B7 #B72A79
split-complementary
#B7AF2A #2A79B7 #692AB7
monochromatic
#535013 #857F1F #B7AF2A #D5CD49 #E1DB7B

Accessibility & contrast

On white

2.29
#B7AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#B7AF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF2A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF2A#FFFFFF#000000##000000
##B7AF2A1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA806
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2a;
/* rgb */ color: rgb(183, 175, 42);
/* oklch */ color: oklch(73.8% 0.145 105.9);
Tailwind
colors: {
  custom: {
    50: '#d0c66f',
    500: '#b7af2a',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2a;
$custom-light: #d0c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2a",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 42
  },
  "hsl": {
    "h": 56.596,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.73822,
    "c": 0.14499,
    "h": 105.9
  },
  "luminance": 0.40894
}

Semantic roles & 50–950 ramp

primary
#B7AF2A
secondary
#7479C9
accent
#4BE642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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