#B1B228#B1B228

#B1B228 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.150 H 110.0°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#B1B228
RGBrgb(177, 178, 40)
HSLhsl(60, 63%, 43%)
HSVhsv(60, 78%, 70%)
CMYKcmyk(0.6%, 0%, 77.5%, 30.2%)
CIE-LABlab(70.41, -16.03, 64.63)
CIE-LCHlch(70.41, 66.58, 103.93°)
OKLaboklab(73.95% -0.0513 0.1409)
OKLCHoklch(73.95% 0.15 110)
XYZxyz(34.4361, 41.3421, 8.1729)
Luminance0.4134 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B228 #2928B2
analogous
#B26E28 #B1B228 #6CB228
triadic
#B1B228 #28B1B2 #B228B1
tetradic
#B1B228 #28B26E #2928B2 #B2286C
square
#B1B228 #28B26E #2928B2 #B2286C
split-complementary
#B1B228 #286CB2 #6E28B2
monochromatic
#4E4E12 #7F801D #B1B228 #D4D543 #DFE075

Accessibility & contrast

On white

2.27
#B1B228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#B1B228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B228
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B228#FFFFFF#000000##000000
##B1B2281.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C2AE34
Tritanopia (blue-blind)
#BEA699
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b1b228;
/* rgb */ color: rgb(177, 178, 40);
/* oklch */ color: oklch(73.9% 0.150 110.0);
Tailwind
colors: {
  custom: {
    50: '#ccc86e',
    500: '#b1b228',
    950: '#000000',
  },
}
SCSS
$custom: #b1b228;
$custom-light: #ccc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b228",
  "rgb": {
    "r": 177,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 60.435,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73946,
    "c": 0.14991,
    "h": 110
  },
  "luminance": 0.41341
}

Semantic roles & 50–950 ramp

primary
#B1B228
secondary
#6F6FC7
accent
#41E643
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1B228

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

Preview Lab → · Contrast checker → · Palette generator →

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