#B7AF2C#B7AF2C

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

Color values

HEX#B7AF2C
RGBrgb(183, 175, 44)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 76%, 72%)
CMYKcmyk(0%, 4.4%, 76%, 28.2%)
CIE-LABlab(70.11, -11.72, 63.27)
CIE-LCHlch(70.11, 64.34, 100.50°)
OKLaboklab(73.83% -0.0392 0.1385)
OKLCHoklch(73.83% 0.144 105.8)
XYZxyz(35.3145, 40.9104, 8.4187)
Luminance0.4091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AF2C #2C34B7
analogous
#B76A2C #B7AF2C #79B72C
triadic
#B7AF2C #2CB7AF #AF2CB7
tetradic
#B7AF2C #2CB76A #2C34B7 #B72C79
square
#B7AF2C #2CB76A #2C34B7 #B72C79
split-complementary
#B7AF2C #2C79B7 #6A2CB7
monochromatic
#545114 #868020 #B7AF2C #D4CC4C #E0DA7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B7AF2C#FFFFFF#000000##000000
##B7AF2C1.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)
#BFA80D
Deuteranopia (green-blind)
#C2AE36
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b7af2c;
/* rgb */ color: rgb(183, 175, 44);
/* oklch */ color: oklch(73.8% 0.144 105.8);
Tailwind
colors: {
  custom: {
    50: '#d0c670',
    500: '#b7af2c',
    950: '#000000',
  },
}
SCSS
$custom: #b7af2c;
$custom-light: #d0c670;
$custom-dark: #000000;
JSON
{
  "hex": "#b7af2c",
  "rgb": {
    "r": 183,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 56.547,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73834,
    "c": 0.14392,
    "h": 105.8
  },
  "luminance": 0.40909
}

Semantic roles & 50–950 ramp

primary
#B7AF2C
secondary
#767BC8
accent
#4DE443
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B7AF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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