#B7AF2E#B7AF2E

#B7AF2E 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#B7AF2E
RGBrgb(183, 175, 46)
HSLhsl(56, 60%, 45%)
HSVhsv(56, 75%, 72%)
CMYKcmyk(0%, 4.4%, 74.9%, 28.2%)
CIE-LABlab(70.12, -11.64, 62.61)
CIE-LCHlch(70.12, 63.68, 100.53°)
OKLaboklab(73.85% -0.0388 0.1375)
OKLCHoklch(73.85% 0.143 105.8)
XYZxyz(35.3530, 40.9258, 8.6215)
Luminance0.4092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2E #2E36B7
analogous
#B76A2E #B7AF2E #7BB72E
triadic
#B7AF2E #2EB7AF #AF2EB7
tetradic
#B7AF2E #2EB76A #2E36B7 #B72E7B
square
#B7AF2E #2EB76A #2E36B7 #B72E7B
split-complementary
#B7AF2E #2E7BB7 #6A2EB7
monochromatic
#555115 #868022 #B7AF2E #D3CB4F #DFDA80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AF2E#FFFFFF#000000##000000
##B7AF2E1.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)
#BEA812
Deuteranopia (green-blind)
#C2AE38
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2e;
/* rgb */ color: rgb(183, 175, 46);
/* oklch */ color: oklch(73.8% 0.143 105.8);
Tailwind
colors: {
  custom: {
    50: '#d0c671',
    500: '#b7af2e',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2e;
$custom-light: #d0c671;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2e",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 46
  },
  "hsl": {
    "h": 56.496,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.73846,
    "c": 0.14283,
    "h": 105.8
  },
  "luminance": 0.40924
}

Semantic roles & 50–950 ramp

primary
#B7AF2E
secondary
#797DC8
accent
#4EE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2E

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

Preview Lab → · Contrast checker → · Palette generator →

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