#B7AF34#B7AF34

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

Color values

HEX#B7AF34
RGBrgb(183, 175, 52)
HSLhsl(56, 56%, 46%)
HSVhsv(56, 72%, 72%)
CMYKcmyk(0%, 4.4%, 71.6%, 28.2%)
CIE-LABlab(70.16, -11.36, 60.51)
CIE-LCHlch(70.16, 61.57, 100.64°)
OKLaboklab(73.89% -0.0374 0.1341)
OKLCHoklch(73.89% 0.139 105.6)
XYZxyz(35.4797, 40.9765, 9.2885)
Luminance0.4098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF34 #343CB7
analogous
#B76D34 #B7AF34 #7DB734
triadic
#B7AF34 #34B7AF #AF34B7
tetradic
#B7AF34 #34B76D #343CB7 #B7347D
square
#B7AF34 #34B76D #343CB7 #B7347D
split-complementary
#B7AF34 #347DB7 #6D34B7
monochromatic
#585419 #878126 #B7AF34 #D0C859 #DDD888

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AF34#FFFFFF#000000##000000
##B7AF341.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7af34;
/* rgb */ color: rgb(183, 175, 52);
/* oklch */ color: oklch(73.9% 0.139 105.6);
Tailwind
colors: {
  custom: {
    50: '#d0c674',
    500: '#b7af34',
    950: '#000000',
  },
}
SCSS
$custom: #b7af34;
$custom-light: #d0c674;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af34",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 52
  },
  "hsl": {
    "h": 56.336,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73885,
    "c": 0.13925,
    "h": 105.6
  },
  "luminance": 0.40975
}

Semantic roles & 50–950 ramp

primary
#B7AF34
secondary
#8084C7
accent
#52DF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7AF34

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

Preview Lab → · Contrast checker → · Palette generator →

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