#B3AF30#B3AF30

#B3AF30 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.142 H 107.6°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#B3AF30
RGBrgb(179, 175, 48)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 73%, 70%)
CMYKcmyk(0%, 2.2%, 73.2%, 29.8%)
CIE-LABlab(69.79, -13.29, 61.48)
CIE-LCHlch(69.79, 62.90, 102.20°)
OKLaboklab(73.51% -0.043 0.1356)
OKLCHoklch(73.51% 0.142 107.6)
XYZxyz(34.4552, 40.4582, 8.7900)
Luminance0.4046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF30 #3034B3
analogous
#B36E30 #B3AF30 #76B330
triadic
#B3AF30 #30B3AF #AF30B3
tetradic
#B3AF30 #30B36E #3034B3 #B33076
square
#B3AF30 #30B36E #3034B3 #B33076
split-complementary
#B3AF30 #3076B3 #6E30B3
monochromatic
#525116 #838023 #B3AF30 #D0CC50 #DDDA80

Accessibility & contrast

On white

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

On black

9.09
#B3AF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3AF30
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3AF30#FFFFFF#000000##000000
##B3AF301.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b3af30;
/* rgb */ color: rgb(179, 175, 48);
/* oklch */ color: oklch(73.5% 0.142 107.6);
Tailwind
colors: {
  custom: {
    50: '#cdc672',
    500: '#b3af30',
    950: '#000000',
  },
}
SCSS
$custom: #b3af30;
$custom-light: #cdc672;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af30",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 58.168,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.73505,
    "c": 0.14225,
    "h": 107.6
  },
  "luminance": 0.40457
}

Semantic roles & 50–950 ramp

primary
#B3AF30
secondary
#797BC6
accent
#4CE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF30

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

Preview Lab → · Contrast checker → · Palette generator →

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