#B7AF2F#B7AF2F

#B7AF2F is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.9% C 0.142 H 105.7°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#B7AF2F
RGBrgb(183, 175, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 72%)
CMYKcmyk(0%, 4.4%, 74.3%, 28.2%)
CIE-LABlab(70.13, -11.60, 62.27)
CIE-LCHlch(70.13, 63.34, 100.55°)
OKLaboklab(73.85% -0.0386 0.1369)
OKLCHoklch(73.85% 0.142 105.7)
XYZxyz(35.3730, 40.9338, 8.7265)
Luminance0.4093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2F #2F37B7
analogous
#B76B2F #B7AF2F #7BB72F
triadic
#B7AF2F #2FB7AF #AF2FB7
tetradic
#B7AF2F #2FB76B #2F37B7 #B72F7B
square
#B7AF2F #2FB76B #2F37B7 #B72F7B
split-complementary
#B7AF2F #2F7BB7 #6B2FB7
monochromatic
#565216 #868022 #B7AF2F #D2CB51 #DFD982

Accessibility & contrast

On white

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

On black

9.19
#B7AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF2F
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF2F#FFFFFF#000000##000000
##B7AF2F1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA815
Deuteranopia (green-blind)
#C2AE39
Tritanopia (blue-blind)
#C5A397
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2f;
/* rgb */ color: rgb(183, 175, 47);
/* oklch */ color: oklch(73.9% 0.142 105.7);
Tailwind
colors: {
  custom: {
    50: '#d0c671',
    500: '#b7af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2f;
$custom-light: #d0c671;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2f",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 56.471,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73852,
    "c": 0.14226,
    "h": 105.7
  },
  "luminance": 0.40932
}

Semantic roles & 50–950 ramp

primary
#B7AF2F
secondary
#7A7FC8
accent
#4FE245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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