#B1A827#B1A827

#B1A827 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.7% C 0.141 H 105.3°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#B1A827
RGBrgb(177, 168, 39)
HSLhsl(56, 64%, 42%)
HSVhsv(56, 78%, 69%)
CMYKcmyk(0%, 5.1%, 78%, 30.6%)
CIE-LABlab(67.65, -10.92, 62.44)
CIE-LCHlch(67.65, 63.39, 99.92°)
OKLaboklab(71.74% -0.0371 0.136)
OKLCHoklch(71.74% 0.141 105.3)
XYZxyz(32.5017, 37.5001, 7.4453)
Luminance0.3750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A827 #2730B1
analogous
#B16327 #B1A827 #75B127
triadic
#B1A827 #27B1A8 #A827B1
tetradic
#B1A827 #27B163 #2730B1 #B12775
square
#B1A827 #27B163 #2730B1 #B12775
split-complementary
#B1A827 #2775B1 #6327B1
monochromatic
#4D4911 #7F781C #B1A827 #D5CB40 #E0D972

Accessibility & contrast

On white

2.47
#B1A827 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#B1A827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A827
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A827#FFFFFF#000000##000000
##B1A8271.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A203
Deuteranopia (green-blind)
#BAA731
Tritanopia (blue-blind)
#BF9C90
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b1a827;
/* rgb */ color: rgb(177, 168, 39);
/* oklch */ color: oklch(71.7% 0.141 105.3);
Tailwind
colors: {
  custom: {
    50: '#ccc16d',
    500: '#b1a827',
    950: '#000000',
  },
}
SCSS
$custom: #b1a827;
$custom-light: #ccc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a827",
  "rgb": {
    "r": 177,
    "g": 168,
    "b": 39
  },
  "hsl": {
    "h": 56.087,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.71739,
    "c": 0.14099,
    "h": 105.3
  },
  "luminance": 0.37499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B1A827

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

Preview Lab → · Contrast checker → · Palette generator →

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