#B7AD2F#B7AD2F

#B7AD2F is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.4% C 0.140 H 104.7°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#B7AD2F
RGBrgb(183, 173, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 72%)
CMYKcmyk(0%, 5.5%, 74.3%, 28.2%)
CIE-LABlab(69.58, -10.56, 61.76)
CIE-LCHlch(69.58, 62.65, 99.70°)
OKLaboklab(73.42% -0.0357 0.1358)
OKLCHoklch(73.42% 0.14 104.7)
XYZxyz(34.9866, 40.1610, 8.5977)
Luminance0.4016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AD2F #2F39B7
analogous
#B7692F #B7AD2F #7DB72F
triadic
#B7AD2F #2FB7AD #AD2FB7
tetradic
#B7AD2F #2FB769 #2F39B7 #B72F7D
square
#B7AD2F #2FB769 #2F39B7 #B72F7D
split-complementary
#B7AD2F #2F7DB7 #692FB7
monochromatic
#565116 #867F22 #B7AD2F #D2C951 #DFD882

Accessibility & contrast

On white

2.33
#B7AD2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#B7AD2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AD2F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AD2F#FFFFFF#000000##000000
##B7AD2F1.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA716
Deuteranopia (green-blind)
#C0AC38
Tritanopia (blue-blind)
#C5A195
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b7ad2f;
/* rgb */ color: rgb(183, 173, 47);
/* oklch */ color: oklch(73.4% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#d0c571',
    500: '#b7ad2f',
    950: '#000000',
  },
}
SCSS
$custom: #b7ad2f;
$custom-light: #d0c571;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ad2f",
  "rgb": {
    "r": 183,
    "g": 173,
    "b": 47
  },
  "hsl": {
    "h": 55.588,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73418,
    "c": 0.14045,
    "h": 104.7
  },
  "luminance": 0.4016
}

Semantic roles & 50–950 ramp

primary
#B7AD2F
secondary
#7A80C8
accent
#51E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B7AD2F

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

Preview Lab → · Contrast checker → · Palette generator →

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