#B8AF2D#B8AF2D

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

Color values

HEX#B8AF2D
RGBrgb(184, 175, 45)
HSLhsl(56, 61%, 45%)
HSVhsv(56, 76%, 72%)
CMYKcmyk(0%, 4.9%, 75.5%, 27.8%)
CIE-LABlab(70.20, -11.25, 63.05)
CIE-LCHlch(70.20, 64.05, 100.11°)
OKLaboklab(73.93% -0.0378 0.1382)
OKLCHoklch(73.93% 0.143 105.3)
XYZxyz(35.5723, 41.0411, 8.5301)
Luminance0.4104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8AF2D #2D36B8
analogous
#B8692D #B8AF2D #7CB82D
triadic
#B8AF2D #2DB8AF #AF2DB8
tetradic
#B8AF2D #2DB869 #2D36B8 #B82D7C
square
#B8AF2D #2DB869 #2D36B8 #B82D7C
split-complementary
#B8AF2D #2D7CB8 #692DB8
monochromatic
#565115 #878021 #B8AF2D #D4CB4E #E0DA80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B8AF2D#FFFFFF#000000##000000
##B8AF2D1.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)
#BFA910
Deuteranopia (green-blind)
#C2AE37
Tritanopia (blue-blind)
#C6A396
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b8af2d;
/* rgb */ color: rgb(184, 175, 45);
/* oklch */ color: oklch(73.9% 0.143 105.3);
Tailwind
colors: {
  custom: {
    50: '#d1c670',
    500: '#b8af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b8af2d;
$custom-light: #d1c670;
$custom-dark: #000000;
JSON
{
  "hex": "#b8af2d",
  "rgb": {
    "r": 184,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 56.115,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.73929,
    "c": 0.14326,
    "h": 105.3
  },
  "luminance": 0.4104
}

Semantic roles & 50–950 ramp

primary
#B8AF2D
secondary
#787DC9
accent
#4EE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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