#B7AF3A#B7AF3A

#B7AF3A is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.9% C 0.135 H 105.4°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#B7AF3A
RGBrgb(183, 175, 58)
HSLhsl(56, 52%, 47%)
HSVhsv(56, 68%, 72%)
CMYKcmyk(0%, 4.4%, 68.3%, 28.2%)
CIE-LABlab(70.20, -11.05, 58.25)
CIE-LCHlch(70.20, 59.29, 100.74°)
OKLaboklab(73.93% -0.0359 0.1304)
OKLCHoklch(73.93% 0.135 105.4)
XYZxyz(35.6235, 41.0340, 10.0460)
Luminance0.4103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF3A #3A42B7
analogous
#B7713A #B7AF3A #81B73A
triadic
#B7AF3A #3AB7AF #AF3AB7
tetradic
#B7AF3A #3AB771 #3A42B7 #B73A81
square
#B7AF3A #3AB771 #3A42B7 #B73A81
split-complementary
#B7AF3A #3A81B7 #713AB7
monochromatic
#5A561D #89832B #B7AF3A #CDC661 #DCD790

Accessibility & contrast

On white

2.28
#B7AF3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#B7AF3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF3A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF3A#FFFFFF#000000##000000
##B7AF3A1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA929
Deuteranopia (green-blind)
#C1AE42
Tritanopia (blue-blind)
#C4A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7af3a;
/* rgb */ color: rgb(183, 175, 58);
/* oklch */ color: oklch(73.9% 0.135 105.4);
Tailwind
colors: {
  custom: {
    50: '#d0c677',
    500: '#b7af3a',
    950: '#000000',
  },
}
SCSS
$custom: #b7af3a;
$custom-light: #d0c677;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af3a",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 58
  },
  "hsl": {
    "h": 56.16,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.7393,
    "c": 0.13525,
    "h": 105.4
  },
  "luminance": 0.41033
}

Semantic roles & 50–950 ramp

primary
#B7AF3A
secondary
#868AC7
accent
#56DB4C
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7AF3A

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

Preview Lab → · Contrast checker → · Palette generator →

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