#B3AF27#B3AF27

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

Color values

HEX#B3AF27
RGBrgb(179, 175, 39)
HSLhsl(58, 64%, 43%)
HSVhsv(58, 78%, 70%)
CMYKcmyk(0%, 2.2%, 78.2%, 29.8%)
CIE-LABlab(69.75, -13.67, 64.39)
CIE-LCHlch(69.75, 65.83, 101.98°)
OKLaboklab(73.45% -0.0449 0.1401)
OKLCHoklch(73.45% 0.147 107.8)
XYZxyz(34.2880, 40.3913, 7.9092)
Luminance0.4039 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3AF27 #272BB3
analogous
#B36927 #B3AF27 #71B327
triadic
#B3AF27 #27B3AF #AF27B3
tetradic
#B3AF27 #27B369 #272BB3 #B32771
square
#B3AF27 #27B369 #272BB3 #B32771
split-complementary
#B3AF27 #2771B3 #6927B3
monochromatic
#4E4D11 #817E1C #B3AF27 #D6D141 #E1DE74

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3AF27#FFFFFF#000000##000000
##B3AF271.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)
#BEA800
Deuteranopia (green-blind)
#C0AD33
Tritanopia (blue-blind)
#C0A396
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #b3af27;
/* rgb */ color: rgb(179, 175, 39);
/* oklch */ color: oklch(73.5% 0.147 107.8);
Tailwind
colors: {
  custom: {
    50: '#cec66d',
    500: '#b3af27',
    950: '#000000',
  },
}
SCSS
$custom: #b3af27;
$custom-light: #cec66d;
$custom-dark: #000000;
JSON
{
  "hex": "#b3af27",
  "rgb": {
    "r": 179,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 58.286,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73452,
    "c": 0.14712,
    "h": 107.8
  },
  "luminance": 0.4039
}

Semantic roles & 50–950 ramp

primary
#B3AF27
secondary
#6E70C8
accent
#45E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B3AF27

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

Preview Lab → · Contrast checker → · Palette generator →

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