#BFAF38#BFAF38

#BFAF38 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.6% C 0.136 H 101.5°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#BFAF38
RGBrgb(191, 175, 56)
HSLhsl(53, 55%, 48%)
HSVhsv(53, 71%, 75%)
CMYKcmyk(0%, 8.4%, 70.7%, 25.1%)
CIE-LABlab(70.89, -7.69, 59.95)
CIE-LCHlch(70.89, 60.44, 97.31°)
OKLaboklab(74.64% -0.0271 0.1334)
OKLCHoklch(74.64% 0.136 101.5)
XYZxyz(37.5313, 42.0235, 9.8750)
Luminance0.4202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BFAF38 #3848BF
analogous
#BF6B38 #BFAF38 #8BBF38
triadic
#BFAF38 #38BFAF #AF38BF
tetradic
#BFAF38 #38BF6B #3848BF #BF388B
square
#BFAF38 #38BF6B #3848BF #BF388B
split-complementary
#BFAF38 #388BBF #6B38BF
monochromatic
#60581C #90842A #BFAF38 #D1C463 #DFD692

Accessibility & contrast

On white

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

On black

9.40
#BFAF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BFAF38
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BFAF38#FFFFFF#000000##000000
##BFAF381.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA26
Deuteranopia (green-blind)
#C4B040
Tritanopia (blue-blind)
#CEA397
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #bfaf38;
/* rgb */ color: rgb(191, 175, 56);
/* oklch */ color: oklch(74.6% 0.136 101.5);
Tailwind
colors: {
  custom: {
    50: '#d6c676',
    500: '#bfaf38',
    950: '#000000',
  },
}
SCSS
$custom: #bfaf38;
$custom-light: #d6c676;
$custom-dark: #000000;
JSON
{
  "hex": "#bfaf38",
  "rgb": {
    "r": 191,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 52.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.7464,
    "c": 0.1361,
    "h": 101.5
  },
  "luminance": 0.42022
}

Semantic roles & 50–950 ramp

primary
#BFAF38
secondary
#8990CA
accent
#5BDE4A
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BFAF38

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

Preview Lab → · Contrast checker → · Palette generator →

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