#BCA31F#BCA31F

#BCA31F is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.7% C 0.140 H 97.3°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#BCA31F
RGBrgb(188, 163, 31)
HSLhsl(50, 72%, 43%)
HSVhsv(50, 84%, 74%)
CMYKcmyk(0%, 13.3%, 83.5%, 26.3%)
CIE-LABlab(67.27, -3.68, 64.84)
CIE-LCHlch(67.27, 64.95, 93.25°)
OKLaboklab(71.66% -0.0179 0.1391)
OKLCHoklch(71.66% 0.14 97.3)
XYZxyz(34.0854, 36.9866, 6.6398)
Luminance0.3699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BCA31F #1F38BC
analogous
#BC551F #BCA31F #86BC1F
triadic
#BCA31F #1FBCA3 #A31FBC
tetradic
#BCA31F #1FBC55 #1F38BC #BC1F86
square
#BCA31F #1FBC55 #1F38BC #BC1F86
split-complementary
#BCA31F #1F86BC #551FBC
monochromatic
#53480E #877516 #BCA31F #DEC43A #E7D46E

Accessibility & contrast

On white

2.50
#BCA31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#BCA31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BCA31F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BCA31F#FFFFFF#000000##000000
##BCA31F1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#BBA72A
Tritanopia (blue-blind)
#CC968B
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #bca31f;
/* rgb */ color: rgb(188, 163, 31);
/* oklch */ color: oklch(71.7% 0.140 97.3);
Tailwind
colors: {
  custom: {
    50: '#d5bd69',
    500: '#bca31f',
    950: '#000000',
  },
}
SCSS
$custom: #bca31f;
$custom-light: #d5bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#bca31f",
  "rgb": {
    "r": 188,
    "g": 163,
    "b": 31
  },
  "hsl": {
    "h": 50.446,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71661,
    "c": 0.14025,
    "h": 97.3
  },
  "luminance": 0.36985
}

Semantic roles & 50–950 ramp

primary
#BCA31F
secondary
#6979CD
accent
#56EE39
background
#FDFBF6
surface
#FBF6EB
border
#D4D0C6
text
#151207
muted
#83817A

Preview Lab

Preview with #BCA31F

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

Preview Lab → · Contrast checker → · Palette generator →

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