#B8AF2F#B8AF2F

#B8AF2F is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.9% C 0.142 H 105.3°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#B8AF2F
RGBrgb(184, 175, 47)
HSLhsl(56, 59%, 45%)
HSVhsv(56, 74%, 72%)
CMYKcmyk(0%, 4.9%, 74.5%, 27.8%)
CIE-LABlab(70.22, -11.16, 62.38)
CIE-LCHlch(70.22, 63.37, 100.14°)
OKLaboklab(73.94% -0.0374 0.1371)
OKLCHoklch(73.94% 0.142 105.3)
XYZxyz(35.6117, 41.0569, 8.7377)
Luminance0.4106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AF2F #2F38B8
analogous
#B86A2F #B8AF2F #7DB82F
triadic
#B8AF2F #2FB8AF #AF2FB8
tetradic
#B8AF2F #2FB86A #2F38B8 #B82F7D
square
#B8AF2F #2FB86A #2F38B8 #B82F7D
split-complementary
#B8AF2F #2F7DB8 #6A2FB8
monochromatic
#575216 #878123 #B8AF2F #D3CA52 #DFD982

Accessibility & contrast

On white

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

On black

9.21
#B8AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8AF2F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8AF2F#FFFFFF#000000##000000
##B8AF2F1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA915
Deuteranopia (green-blind)
#C2AE39
Tritanopia (blue-blind)
#C6A397
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8af2f;
/* rgb */ color: rgb(184, 175, 47);
/* oklch */ color: oklch(73.9% 0.142 105.3);
Tailwind
colors: {
  custom: {
    50: '#d1c671',
    500: '#b8af2f',
    950: '#000000',
  },
}
SCSS
$custom: #b8af2f;
$custom-light: #d1c671;
$custom-dark: #000000;
JSON
{
  "hex": "#b8af2f",
  "rgb": {
    "r": 184,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 56.058,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.73942,
    "c": 0.14214,
    "h": 105.3
  },
  "luminance": 0.41056
}

Semantic roles & 50–950 ramp

primary
#B8AF2F
secondary
#7B80C8
accent
#50E245
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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