#B2AF30#B2AF30

#B2AF30 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.4% C 0.142 H 108.1°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#B2AF30
RGBrgb(178, 175, 48)
HSLhsl(59, 58%, 44%)
HSVhsv(59, 73%, 70%)
CMYKcmyk(0%, 1.7%, 73%, 30.2%)
CIE-LABlab(69.71, -13.73, 61.37)
CIE-LCHlch(69.71, 62.89, 102.61°)
OKLaboklab(73.42% -0.0442 0.1354)
OKLCHoklch(73.42% 0.142 108.1)
XYZxyz(34.2249, 40.3394, 8.7792)
Luminance0.4034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF30 #3033B2
analogous
#B26E30 #B2AF30 #74B230
triadic
#B2AF30 #30B2AF #AF30B2
tetradic
#B2AF30 #30B26E #3033B2 #B23074
square
#B2AF30 #30B26E #3033B2 #B23074
split-complementary
#B2AF30 #3074B2 #6E30B2
monochromatic
#525016 #828023 #B2AF30 #D0CD50 #DDDB80

Accessibility & contrast

On white

2.32
#B2AF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#B2AF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF30
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF30#FFFFFF#000000##000000
##B2AF301.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA817
Deuteranopia (green-blind)
#C0AC3A
Tritanopia (blue-blind)
#BFA397
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b2af30;
/* rgb */ color: rgb(178, 175, 48);
/* oklch */ color: oklch(73.4% 0.142 108.1);
Tailwind
colors: {
  custom: {
    50: '#cdc672',
    500: '#b2af30',
    950: '#000000',
  },
}
SCSS
$custom: #b2af30;
$custom-light: #cdc672;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af30",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 58.615,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73417,
    "c": 0.14243,
    "h": 108.1
  },
  "luminance": 0.40338
}

Semantic roles & 50–950 ramp

primary
#B2AF30
secondary
#787AC6
accent
#4BE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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