#B2AF4D#B2AF4D

#B2AF4D is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.7% C 0.121 H 107.4°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#B2AF4D
RGBrgb(178, 175, 77)
HSLhsl(58, 40%, 50%)
HSVhsv(58, 57%, 70%)
CMYKcmyk(0%, 1.7%, 56.7%, 30.2%)
CIE-LABlab(69.94, -11.94, 49.63)
CIE-LCHlch(69.94, 51.04, 103.52°)
OKLaboklab(73.67% -0.036 0.115)
OKLCHoklch(73.67% 0.121 107.4)
XYZxyz(35.0306, 40.6618, 13.0229)
Luminance0.4066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF4D #4D50B2
analogous
#B27D4D #B2AF4D #82B24D
triadic
#B2AF4D #4DB2AF #AF4DB2
tetradic
#B2AF4D #4DB27D #4D50B2 #B24D82
square
#B2AF4D #4DB27D #4D50B2 #B24D82
split-complementary
#B2AF4D #4D82B2 #7D4DB2
monochromatic
#5D5B28 #87853B #B2AF4D #C4C278 #D7D5A2

Accessibility & contrast

On white

2.30
#B2AF4D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.13
#B2AF4D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF4D
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF4D#FFFFFF#000000##000000
##B2AF4D1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA943
Deuteranopia (green-blind)
#BEAD52
Tritanopia (blue-blind)
#BEA59A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2af4d;
/* rgb */ color: rgb(178, 175, 77);
/* oklch */ color: oklch(73.7% 0.121 107.4);
Tailwind
colors: {
  custom: {
    50: '#cbc682',
    500: '#b2af4d',
    950: '#000000',
  },
}
SCSS
$custom: #b2af4d;
$custom-light: #cbc682;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af4d",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 77
  },
  "hsl": {
    "h": 58.218,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.73672,
    "c": 0.12053,
    "h": 107.4
  },
  "luminance": 0.40661
}

Semantic roles & 50–950 ramp

primary
#B2AF4D
secondary
#9798C4
accent
#5CCF58
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130B
muted
#82827C

Preview Lab

Preview with #B2AF4D

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

Preview Lab → · Contrast checker → · Palette generator →

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