#B2AF38#B2AF38

#B2AF38 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.5% C 0.137 H 107.9°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#B2AF38
RGBrgb(178, 175, 56)
HSLhsl(59, 52%, 46%)
HSVhsv(59, 69%, 70%)
CMYKcmyk(0%, 1.7%, 68.5%, 30.2%)
CIE-LABlab(69.76, -13.32, 58.45)
CIE-LCHlch(69.76, 59.95, 102.84°)
OKLaboklab(73.47% -0.0423 0.1306)
OKLCHoklch(73.47% 0.137 107.9)
XYZxyz(34.4051, 40.4115, 9.7285)
Luminance0.4041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF38 #383BB2
analogous
#B27238 #B2AF38 #78B238
triadic
#B2AF38 #38B2AF #AF38B2
tetradic
#B2AF38 #38B272 #383BB2 #B23878
square
#B2AF38 #38B272 #383BB2 #B23878
split-complementary
#B2AF38 #3878B2 #7238B2
monochromatic
#55531B #838129 #B2AF38 #CCC95C #DAD88A

Accessibility & contrast

On white

2.31
#B2AF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#B2AF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF38
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF38#FFFFFF#000000##000000
##B2AF381.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA826
Deuteranopia (green-blind)
#BFAC40
Tritanopia (blue-blind)
#BFA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af38;
/* rgb */ color: rgb(178, 175, 56);
/* oklch */ color: oklch(73.5% 0.137 107.9);
Tailwind
colors: {
  custom: {
    50: '#ccc676',
    500: '#b2af38',
    950: '#000000',
  },
}
SCSS
$custom: #b2af38;
$custom-light: #ccc676;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af38",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 58.525,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.73474,
    "c": 0.13731,
    "h": 107.9
  },
  "luminance": 0.4041
}

Semantic roles & 50–950 ramp

primary
#B2AF38
secondary
#8183C5
accent
#50DC4C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #B2AF38

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

Preview Lab → · Contrast checker → · Palette generator →

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