#B7AF2D#B7AF2D

#B7AF2D is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.143 H 105.8°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#B7AF2D
RGBrgb(183, 175, 45)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 75%, 72%)
CMYKcmyk(0%, 4.4%, 75.4%, 28.2%)
CIE-LABlab(70.12, -11.68, 62.94)
CIE-LCHlch(70.12, 64.01, 100.52°)
OKLaboklab(73.84% -0.039 0.138)
OKLCHoklch(73.84% 0.143 105.8)
XYZxyz(35.3335, 40.9180, 8.5189)
Luminance0.4092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2D #2D35B7
analogous
#B76A2D #B7AF2D #7AB72D
triadic
#B7AF2D #2DB7AF #AF2DB7
tetradic
#B7AF2D #2DB76A #2D35B7 #B72D7A
square
#B7AF2D #2DB76A #2D35B7 #B72D7A
split-complementary
#B7AF2D #2D7AB7 #6A2DB7
monochromatic
#555115 #868021 #B7AF2D #D3CC4E #DFDA7F

Accessibility & contrast

On white

2.29
#B7AF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#B7AF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AF2D
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AF2D#FFFFFF#000000##000000
##B7AF2D1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA810
Deuteranopia (green-blind)
#C2AE37
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2d;
/* rgb */ color: rgb(183, 175, 45);
/* oklch */ color: oklch(73.8% 0.143 105.8);
Tailwind
colors: {
  custom: {
    50: '#d0c670',
    500: '#b7af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2d;
$custom-light: #d0c670;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2d",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 56.522,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7384,
    "c": 0.14339,
    "h": 105.8
  },
  "luminance": 0.40917
}

Semantic roles & 50–950 ramp

primary
#B7AF2D
secondary
#787CC8
accent
#4DE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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