#BFAB40#BFAB40

#BFAB40 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.9% C 0.127 H 98.6°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#BFAB40
RGBrgb(191, 171, 64)
HSLhsl(51, 50%, 50%)
HSVhsv(51, 66%, 75%)
CMYKcmyk(0%, 10.5%, 66.5%, 25.1%)
CIE-LABlab(69.88, -5.15, 55.67)
CIE-LCHlch(69.88, 55.91, 95.29°)
OKLaboklab(73.86% -0.019 0.1257)
OKLCHoklch(73.86% 0.127 98.6)
XYZxyz(36.9758, 40.5741, 10.7334)
Luminance0.4057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BFAB40 #4054BF
analogous
#BF6B40 #BFAB40 #94BF40
triadic
#BFAB40 #40BFAB #AB40BF
tetradic
#BFAB40 #40BF6B #4054BF #BF4094
square
#BFAB40 #40BF6B #4054BF #BF4094
split-complementary
#BFAB40 #4094BF #6B40BF
monochromatic
#635921 #918231 #BFAB40 #CEBF6E #DED39C

Accessibility & contrast

On white

2.30
#BFAB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#BFAB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BFAB40
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BFAB40#FFFFFF#000000##000000
##BFAB401.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA732
Deuteranopia (green-blind)
#C0AE46
Tritanopia (blue-blind)
#CD9F95
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #bfab40;
/* rgb */ color: rgb(191, 171, 64);
/* oklch */ color: oklch(73.9% 0.127 98.6);
Tailwind
colors: {
  custom: {
    50: '#d6c37a',
    500: '#bfab40',
    950: '#000000',
  },
}
SCSS
$custom: #bfab40;
$custom-light: #d6c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#bfab40",
  "rgb": {
    "r": 191,
    "g": 171,
    "b": 64
  },
  "hsl": {
    "h": 50.551,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.73858,
    "c": 0.12713,
    "h": 98.6
  },
  "luminance": 0.40572
}

Semantic roles & 50–950 ramp

primary
#BFAB40
secondary
#919ACA
accent
#64D94E
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#15120A
muted
#83817C

Preview Lab

Preview with #BFAB40

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

Preview Lab → · Contrast checker → · Palette generator →

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