#B3AF2D#B3AF2D

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

Color values

HEX#B3AF2D
RGBrgb(179, 175, 45)
HSLhsl(58, 60%, 44%)
HSVhsv(58, 75%, 70%)
CMYKcmyk(0%, 2.2%, 74.9%, 29.8%)
CIE-LABlab(69.78, -13.43, 62.50)
CIE-LCHlch(69.78, 63.93, 102.12°)
OKLaboklab(73.49% -0.0437 0.1372)
OKLCHoklch(73.49% 0.144 107.7)
XYZxyz(34.3954, 40.4343, 8.4749)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF2D #2D31B3
analogous
#B36C2D #B3AF2D #74B32D
triadic
#B3AF2D #2DB3AF #AF2DB3
tetradic
#B3AF2D #2DB36C #2D31B3 #B32D74
square
#B3AF2D #2DB36C #2D31B3 #B32D74
split-complementary
#B3AF2D #2D74B3 #6C2DB3
monochromatic
#514F14 #827F21 #B3AF2D #D2CE4B #DEDB7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF2D#FFFFFF#000000##000000
##B3AF2D1.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)
#BEA810
Deuteranopia (green-blind)
#C0AD37
Tritanopia (blue-blind)
#C0A396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af2d;
/* rgb */ color: rgb(179, 175, 45);
/* oklch */ color: oklch(73.5% 0.144 107.7);
Tailwind
colors: {
  custom: {
    50: '#cdc670',
    500: '#b3af2d',
    950: '#000000',
  },
}
SCSS
$custom: #b3af2d;
$custom-light: #cdc670;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af2d",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 58.209,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.73486,
    "c": 0.14398,
    "h": 107.7
  },
  "luminance": 0.40433
}

Semantic roles & 50–950 ramp

primary
#B3AF2D
secondary
#7578C7
accent
#4AE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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