#B1A223#B1A223

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

Color values

HEX#B1A223
RGBrgb(177, 162, 35)
HSLhsl(54, 67%, 42%)
HSVhsv(54, 80%, 69%)
CMYKcmyk(0%, 8.5%, 80.2%, 30.6%)
CIE-LABlab(65.99, -7.92, 62.19)
CIE-LCHlch(65.99, 62.69, 97.25°)
OKLaboklab(70.41% -0.029 0.1347)
OKLCHoklch(70.41% 0.138 102.2)
XYZxyz(31.3567, 35.3106, 6.7537)
Luminance0.3531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A223 #2332B1
analogous
#B15B23 #B1A223 #79B123
triadic
#B1A223 #23B1A2 #A223B1
tetradic
#B1A223 #23B15B #2332B1 #B12379
square
#B1A223 #23B15B #2332B1 #B12379
split-complementary
#B1A223 #2379B1 #5B23B1
monochromatic
#4B440F #7E7319 #B1A223 #D8C739 #E2D66C

Accessibility & contrast

On white

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

On black

8.06
#B1A223 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A223
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A223#FFFFFF#000000##000000
##B1A2231.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1a223;
/* rgb */ color: rgb(177, 162, 35);
/* oklch */ color: oklch(70.4% 0.138 102.2);
Tailwind
colors: {
  custom: {
    50: '#ccbd6a',
    500: '#b1a223',
    950: '#000000',
  },
}
SCSS
$custom: #b1a223;
$custom-light: #ccbd6a;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a223",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 35
  },
  "hsl": {
    "h": 53.662,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.70412,
    "c": 0.1378,
    "h": 102.2
  },
  "luminance": 0.35309
}

Semantic roles & 50–950 ramp

primary
#B1A223
secondary
#6872C8
accent
#50EA3E
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A223

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

Preview Lab → · Contrast checker → · Palette generator →

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