#B1A823#B1A823

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

Color values

HEX#B1A823
RGBrgb(177, 168, 35)
HSLhsl(56, 67%, 42%)
HSVhsv(56, 80%, 69%)
CMYKcmyk(0%, 5.1%, 80.2%, 30.6%)
CIE-LABlab(67.63, -11.06, 63.64)
CIE-LCHlch(67.63, 64.59, 99.86°)
OKLaboklab(71.72% -0.0378 0.1378)
OKLCHoklch(71.72% 0.143 105.3)
XYZxyz(32.4389, 37.4750, 7.1145)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A823 #232CB1
analogous
#B16123 #B1A823 #73B123
triadic
#B1A823 #23B1A8 #A823B1
tetradic
#B1A823 #23B161 #232CB1 #B12373
square
#B1A823 #23B161 #232CB1 #B12373
split-complementary
#B1A823 #2373B1 #6123B1
monochromatic
#4B470F #7E7819 #B1A823 #D8CE39 #E2DB6C

Accessibility & contrast

On white

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

On black

8.49
#B1A823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A823
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A823#FFFFFF#000000##000000
##B1A8231.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b1a823;
/* rgb */ color: rgb(177, 168, 35);
/* oklch */ color: oklch(71.7% 0.143 105.3);
Tailwind
colors: {
  custom: {
    50: '#ccc16b',
    500: '#b1a823',
    950: '#000000',
  },
}
SCSS
$custom: #b1a823;
$custom-light: #ccc16b;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a823",
  "rgb": {
    "r": 177,
    "g": 168,
    "b": 35
  },
  "hsl": {
    "h": 56.197,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.71718,
    "c": 0.14292,
    "h": 105.3
  },
  "luminance": 0.37474
}

Semantic roles & 50–950 ramp

primary
#B1A823
secondary
#686EC8
accent
#49EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B1A823

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

Preview Lab → · Contrast checker → · Palette generator →

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