#B1A228#B1A228

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

Color values

HEX#B1A228
RGBrgb(177, 162, 40)
HSLhsl(53, 63%, 43%)
HSVhsv(53, 77%, 69%)
CMYKcmyk(0%, 8.5%, 77.4%, 30.6%)
CIE-LABlab(66.01, -7.73, 60.63)
CIE-LCHlch(66.01, 61.12, 97.27°)
OKLaboklab(70.44% -0.028 0.1323)
OKLCHoklch(70.44% 0.135 102)
XYZxyz(31.4363, 35.3424, 7.1730)
Luminance0.3534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A228 #2837B1
analogous
#B15E28 #B1A228 #7BB128
triadic
#B1A228 #28B1A2 #A228B1
tetradic
#B1A228 #28B15E #2837B1 #B1287B
square
#B1A228 #28B15E #2837B1 #B1287B
split-complementary
#B1A228 #287BB1 #5E28B1
monochromatic
#4D4711 #7F741D #B1A228 #D4C442 #E0D474

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B1A228#FFFFFF#000000##000000
##B1A2281.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)
#B29D0B
Deuteranopia (green-blind)
#B6A331
Tritanopia (blue-blind)
#BF968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a228;
/* rgb */ color: rgb(177, 162, 40);
/* oklch */ color: oklch(70.4% 0.135 102.0);
Tailwind
colors: {
  custom: {
    50: '#ccbd6c',
    500: '#b1a228',
    950: '#000000',
  },
}
SCSS
$custom: #b1a228;
$custom-light: #ccbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a228",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 53.431,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.70439,
    "c": 0.13528,
    "h": 102
  },
  "luminance": 0.35341
}

Semantic roles & 50–950 ramp

primary
#B1A228
secondary
#6E78C7
accent
#54E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A228

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

Preview Lab → · Contrast checker → · Palette generator →

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