#B2AF3F#B2AF3F

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

Color values

HEX#B2AF3F
RGBrgb(178, 175, 63)
HSLhsl(58, 48%, 47%)
HSVhsv(58, 65%, 70%)
CMYKcmyk(0%, 1.7%, 64.6%, 30.2%)
CIE-LABlab(69.81, -12.91, 55.68)
CIE-LCHlch(69.81, 57.16, 103.06°)
OKLaboklab(73.53% -0.0404 0.1259)
OKLCHoklch(73.53% 0.132 107.8)
XYZxyz(34.5884, 40.4849, 10.6940)
Luminance0.4048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AF3F #3F42B2
analogous
#B2763F #B2AF3F #7BB23F
triadic
#B2AF3F #3FB2AF #AF3FB2
tetradic
#B2AF3F #3FB276 #3F42B2 #B23F7B
square
#B2AF3F #3FB276 #3F42B2 #B23F7B
split-complementary
#B2AF3F #3F7BB2 #763FB2
monochromatic
#58561F #85832F #B2AF3F #C9C666 #D9D793

Accessibility & contrast

On white

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

On black

9.10
#B2AF3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AF3F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AF3F#FFFFFF#000000##000000
##B2AF3F1.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA830
Deuteranopia (green-blind)
#BFAD46
Tritanopia (blue-blind)
#BEA498
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2af3f;
/* rgb */ color: rgb(178, 175, 63);
/* oklch */ color: oklch(73.5% 0.132 107.8);
Tailwind
colors: {
  custom: {
    50: '#ccc67a',
    500: '#b2af3f',
    950: '#000000',
  },
}
SCSS
$custom: #b2af3f;
$custom-light: #ccc67a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2af3f",
  "rgb": {
    "r": 178,
    "g": 175,
    "b": 63
  },
  "hsl": {
    "h": 58.435,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73532,
    "c": 0.13224,
    "h": 107.8
  },
  "luminance": 0.40484
}

Semantic roles & 50–950 ramp

primary
#B2AF3F
secondary
#898AC4
accent
#54D750
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #B2AF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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