#B7AF3F#B7AF3F

#B7AF3F is a light, vivid yellow. Relative luminance 0.411; OKLCH L 74.0% C 0.132 H 105.2°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#B7AF3F
RGBrgb(183, 175, 63)
HSLhsl(56, 49%, 48%)
HSVhsv(56, 66%, 72%)
CMYKcmyk(0%, 4.4%, 65.6%, 28.2%)
CIE-LABlab(70.24, -10.76, 56.25)
CIE-LCHlch(70.24, 57.27, 100.83°)
OKLaboklab(73.97% -0.0346 0.127)
OKLCHoklch(73.97% 0.132 105.2)
XYZxyz(35.7570, 41.0874, 10.7488)
Luminance0.4109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF3F #3F47B7
analogous
#B7733F #B7AF3F #83B73F
triadic
#B7AF3F #3FB7AF #AF3FB7
tetradic
#B7AF3F #3FB773 #3F47B7 #B73F83
square
#B7AF3F #3FB773 #3F47B7 #B73F83
split-complementary
#B7AF3F #3F83B7 #733FB7
monochromatic
#5C5820 #89832F #B7AF3F #CBC468 #DBD696

Accessibility & contrast

On white

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

On black

9.22
#B7AF3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF3F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF3F#FFFFFF#000000##000000
##B7AF3F1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA930
Deuteranopia (green-blind)
#C1AE46
Tritanopia (blue-blind)
#C4A498
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b7af3f;
/* rgb */ color: rgb(183, 175, 63);
/* oklch */ color: oklch(74.0% 0.132 105.2);
Tailwind
colors: {
  custom: {
    50: '#d0c67a',
    500: '#b7af3f',
    950: '#000000',
  },
}
SCSS
$custom: #b7af3f;
$custom-light: #d0c67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af3f",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 63
  },
  "hsl": {
    "h": 56,
    "s": 48.78,
    "l": 48.235
  },
  "oklch": {
    "l": 0.73972,
    "c": 0.13162,
    "h": 105.2
  },
  "luminance": 0.41086
}

Semantic roles & 50–950 ramp

primary
#B7AF3F
secondary
#8B8FC6
accent
#59D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #B7AF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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