#BFAF40#BFAF40

#BFAF40 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.7% C 0.130 H 101.0°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#BFAF40
RGBrgb(191, 175, 64)
HSLhsl(52, 50%, 50%)
HSVhsv(52, 66%, 75%)
CMYKcmyk(0%, 8.4%, 66.5%, 25.1%)
CIE-LABlab(70.95, -7.26, 56.79)
CIE-LCHlch(70.95, 57.25, 97.28°)
OKLaboklab(74.71% -0.025 0.1281)
OKLCHoklch(74.71% 0.13 101)
XYZxyz(37.7428, 42.1081, 10.9891)
Luminance0.4211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BFAF40 #4050BF
analogous
#BF7040 #BFAF40 #8FBF40
triadic
#BFAF40 #40BFAF #AF40BF
tetradic
#BFAF40 #40BF70 #4050BF #BF408F
square
#BFAF40 #40BF70 #4050BF #BF408F
split-complementary
#BFAF40 #408FBF #7040BF
monochromatic
#635B21 #918531 #BFAF40 #CEC26E #DED59C

Accessibility & contrast

On white

2.23
#BFAF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#BFAF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BFAF40
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BFAF40#FFFFFF#000000##000000
##BFAF401.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#C3B046
Tritanopia (blue-blind)
#CDA398
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bfaf40;
/* rgb */ color: rgb(191, 175, 64);
/* oklch */ color: oklch(74.7% 0.130 101.0);
Tailwind
colors: {
  custom: {
    50: '#d6c67b',
    500: '#bfaf40',
    950: '#000000',
  },
}
SCSS
$custom: #bfaf40;
$custom-light: #d6c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#bfaf40",
  "rgb": {
    "r": 191,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 52.441,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.74705,
    "c": 0.13048,
    "h": 101
  },
  "luminance": 0.42106
}

Semantic roles & 50–950 ramp

primary
#BFAF40
secondary
#9198CA
accent
#60D94E
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #BFAF40

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

Preview Lab → · Contrast checker → · Palette generator →

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