#B1A227#B1A227

#B1A227 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.136 H 102.0°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B1A227
RGBrgb(177, 162, 39)
HSLhsl(53, 64%, 42%)
HSVhsv(53, 78%, 69%)
CMYKcmyk(0%, 8.5%, 78%, 30.6%)
CIE-LABlab(66.01, -7.77, 60.95)
CIE-LCHlch(66.01, 61.45, 97.26°)
OKLaboklab(70.43% -0.0282 0.1328)
OKLCHoklch(70.43% 0.136 102)
XYZxyz(31.4195, 35.3357, 7.0845)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A227 #2736B1
analogous
#B15D27 #B1A227 #7BB127
triadic
#B1A227 #27B1A2 #A227B1
tetradic
#B1A227 #27B15D #2736B1 #B1277B
square
#B1A227 #27B15D #2736B1 #B1277B
split-complementary
#B1A227 #277BB1 #5D27B1
monochromatic
#4D4611 #7F741C #B1A227 #D5C540 #E0D472

Accessibility & contrast

On white

2.60
#B1A227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B1A227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A227
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A227#FFFFFF#000000##000000
##B1A2271.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D07
Deuteranopia (green-blind)
#B6A330
Tritanopia (blue-blind)
#BF968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a227;
/* rgb */ color: rgb(177, 162, 39);
/* oklch */ color: oklch(70.4% 0.136 102.0);
Tailwind
colors: {
  custom: {
    50: '#ccbd6c',
    500: '#b1a227',
    950: '#000000',
  },
}
SCSS
$custom: #b1a227;
$custom-light: #ccbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a227",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 53.478,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.70433,
    "c": 0.13581,
    "h": 102
  },
  "luminance": 0.35334
}

Semantic roles & 50–950 ramp

primary
#B1A227
secondary
#6D77C7
accent
#53E741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A227

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

Preview Lab → · Contrast checker → · Palette generator →

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