#B1A727#B1A727

#B1A727 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.140 H 104.7°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B1A727
RGBrgb(177, 167, 39)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 5.6%, 78%, 30.6%)
CIE-LABlab(67.38, -10.40, 62.19)
CIE-LCHlch(67.38, 63.06, 99.49°)
OKLaboklab(71.52% -0.0356 0.1355)
OKLCHoklch(71.52% 0.14 104.7)
XYZxyz(32.3178, 37.1323, 7.3840)
Luminance0.3713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A727 #2731B1
analogous
#B16227 #B1A727 #76B127
triadic
#B1A727 #27B1A7 #A727B1
tetradic
#B1A727 #27B162 #2731B1 #B12776
square
#B1A727 #27B162 #2731B1 #B12776
split-complementary
#B1A727 #2776B1 #6227B1
monochromatic
#4D4811 #7F781C #B1A727 #D5CA40 #E0D872

Accessibility & contrast

On white

2.49
#B1A727 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B1A727 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A727
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A727#FFFFFF#000000##000000
##B1A7271.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A103
Deuteranopia (green-blind)
#BAA731
Tritanopia (blue-blind)
#BF9B8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b1a727;
/* rgb */ color: rgb(177, 167, 39);
/* oklch */ color: oklch(71.5% 0.140 104.7);
Tailwind
colors: {
  custom: {
    50: '#ccc06c',
    500: '#b1a727',
    950: '#000000',
  },
}
SCSS
$custom: #b1a727;
$custom-light: #ccc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a727",
  "rgb": {
    "r": 177,
    "g": 167,
    "b": 39
  },
  "hsl": {
    "h": 55.652,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.7152,
    "c": 0.1401,
    "h": 104.7
  },
  "luminance": 0.37131
}

Semantic roles & 50–950 ramp

primary
#B1A727
secondary
#6D73C7
accent
#4DE741
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A727

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

Preview Lab → · Contrast checker → · Palette generator →

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