#B7AF3C#B7AF3C

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

Color values

HEX#B7AF3C
RGBrgb(183, 175, 60)
HSLhsl(56, 51%, 48%)
HSVhsv(56, 67%, 72%)
CMYKcmyk(0%, 4.4%, 67.2%, 28.2%)
CIE-LABlab(70.21, -10.94, 57.46)
CIE-LCHlch(70.21, 58.49, 100.78°)
OKLaboklab(73.95% -0.0354 0.1291)
OKLCHoklch(73.95% 0.134 105.3)
XYZxyz(35.6754, 41.0548, 10.3192)
Luminance0.4105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF3C #3C44B7
analogous
#B7723C #B7AF3C #81B73C
triadic
#B7AF3C #3CB7AF #AF3CB7
tetradic
#B7AF3C #3CB772 #3C44B7 #B73C81
square
#B7AF3C #3CB772 #3C44B7 #B73C81
split-complementary
#B7AF3C #3C81B7 #723CB7
monochromatic
#5B571E #89832D #B7AF3C #CCC564 #DBD792

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AF3C#FFFFFF#000000##000000
##B7AF3C1.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)
#BEA92C
Deuteranopia (green-blind)
#C1AE43
Tritanopia (blue-blind)
#C4A398
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7af3c;
/* rgb */ color: rgb(183, 175, 60);
/* oklch */ color: oklch(73.9% 0.134 105.3);
Tailwind
colors: {
  custom: {
    50: '#d0c678',
    500: '#b7af3c',
    950: '#000000',
  },
}
SCSS
$custom: #b7af3c;
$custom-light: #d0c678;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af3c",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 60
  },
  "hsl": {
    "h": 56.098,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73947,
    "c": 0.13384,
    "h": 105.3
  },
  "luminance": 0.41053
}

Semantic roles & 50–950 ramp

primary
#B7AF3C
secondary
#888CC6
accent
#57DA4E
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B7AF3C

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

Preview Lab → · Contrast checker → · Palette generator →

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