#B1B231#B1B231

#B1B231 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.145 H 109.9°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#B1B231
RGBrgb(177, 178, 49)
HSLhsl(60, 57%, 45%)
HSVhsv(60, 72%, 70%)
CMYKcmyk(0.6%, 0%, 72.5%, 30.2%)
CIE-LABlab(70.46, -15.65, 61.71)
CIE-LCHlch(70.46, 63.66, 104.23°)
OKLaboklab(74% -0.0494 0.1363)
OKLCHoklch(74% 0.145 109.9)
XYZxyz(34.6075, 41.4107, 9.0752)
Luminance0.4141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1B231 #3231B2
analogous
#B27331 #B1B231 #71B231
triadic
#B1B231 #31B1B2 #B231B1
tetradic
#B1B231 #31B273 #3231B2 #B23171
square
#B1B231 #31B273 #3231B2 #B23171
split-complementary
#B1B231 #3171B2 #7331B2
monochromatic
#525217 #818224 #B1B231 #CECF51 #DCDC81

Accessibility & contrast

On white

2.26
#B1B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#B1B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1B231
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1B231#FFFFFF#000000##000000
##B1B2311.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#C2AE3B
Tritanopia (blue-blind)
#BEA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b1b231;
/* rgb */ color: rgb(177, 178, 49);
/* oklch */ color: oklch(74.0% 0.145 109.9);
Tailwind
colors: {
  custom: {
    50: '#ccc872',
    500: '#b1b231',
    950: '#000000',
  },
}
SCSS
$custom: #b1b231;
$custom-light: #ccc872;
$custom-dark: #000000;
JSON
{
  "hex": "#b1b231",
  "rgb": {
    "r": 177,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 60.465,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74,
    "c": 0.14501,
    "h": 109.9
  },
  "luminance": 0.4141
}

Semantic roles & 50–950 ramp

primary
#B1B231
secondary
#7A79C5
accent
#48E049
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B1B231

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

Preview Lab → · Contrast checker → · Palette generator →

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