#B7AF2B#B7AF2B

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

Color values

HEX#B7AF2B
RGBrgb(183, 175, 43)
HSLhsl(57, 62%, 44%)
HSVhsv(57, 77%, 72%)
CMYKcmyk(0%, 4.4%, 76.5%, 28.2%)
CIE-LABlab(70.11, -11.77, 63.59)
CIE-LCHlch(70.11, 64.67, 100.48°)
OKLaboklab(73.83% -0.0394 0.139)
OKLCHoklch(73.83% 0.144 105.8)
XYZxyz(35.2960, 40.9030, 8.3209)
Luminance0.4090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2B #2B33B7
analogous
#B7692B #B7AF2B #79B72B
triadic
#B7AF2B #2BB7AF #AF2BB7
tetradic
#B7AF2B #2BB769 #2B33B7 #B72B79
square
#B7AF2B #2BB769 #2B33B7 #B72B79
split-complementary
#B7AF2B #2B79B7 #692BB7
monochromatic
#545014 #85801F #B7AF2B #D5CD4B #E0DB7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AF2B#FFFFFF#000000##000000
##B7AF2B1.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)
#BFA80A
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2b;
/* rgb */ color: rgb(183, 175, 43);
/* oklch */ color: oklch(73.8% 0.144 105.8);
Tailwind
colors: {
  custom: {
    50: '#d0c66f',
    500: '#b7af2b',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2b;
$custom-light: #d0c66f;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2b",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 56.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73828,
    "c": 0.14446,
    "h": 105.8
  },
  "luminance": 0.40902
}

Semantic roles & 50–950 ramp

primary
#B7AF2B
secondary
#757AC9
accent
#4CE543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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