#B7AF38#B7AF38

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

Color values

HEX#B7AF38
RGBrgb(183, 175, 56)
HSLhsl(56, 53%, 47%)
HSVhsv(56, 69%, 72%)
CMYKcmyk(0%, 4.4%, 69.4%, 28.2%)
CIE-LABlab(70.19, -11.16, 59.02)
CIE-LCHlch(70.19, 60.06, 100.71°)
OKLaboklab(73.91% -0.0365 0.1317)
OKLCHoklch(73.91% 0.137 105.5)
XYZxyz(35.5736, 41.0141, 9.7833)
Luminance0.4101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF38 #3840B7
analogous
#B76F38 #B7AF38 #80B738
triadic
#B7AF38 #38B7AF #AF38B7
tetradic
#B7AF38 #38B76F #3840B7 #B73880
square
#B7AF38 #38B76F #3840B7 #B73880
split-complementary
#B7AF38 #3880B7 #6F38B7
monochromatic
#59551B #88822A #B7AF38 #CEC75E #DCD78D

Accessibility & contrast

On white

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

On black

9.20
#B7AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF38
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF38#FFFFFF#000000##000000
##B7AF381.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7af38;
/* rgb */ color: rgb(183, 175, 56);
/* oklch */ color: oklch(73.9% 0.137 105.5);
Tailwind
colors: {
  custom: {
    50: '#d0c676',
    500: '#b7af38',
    950: '#000000',
  },
}
SCSS
$custom: #b7af38;
$custom-light: #d0c676;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af38",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 56.22,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73915,
    "c": 0.13662,
    "h": 105.5
  },
  "luminance": 0.41013
}

Semantic roles & 50–950 ramp

primary
#B7AF38
secondary
#8488C7
accent
#54DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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