#B1A231#B1A231

#B1A231 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.130 H 101.6°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#B1A231
RGBrgb(177, 162, 49)
HSLhsl(53, 57%, 44%)
HSVhsv(53, 72%, 69%)
CMYKcmyk(0%, 8.5%, 72.3%, 30.6%)
CIE-LABlab(66.07, -7.33, 57.47)
CIE-LCHlch(66.07, 57.93, 97.27°)
OKLaboklab(70.5% -0.026 0.1274)
OKLCHoklch(70.5% 0.13 101.6)
XYZxyz(31.6076, 35.4109, 8.0752)
Luminance0.3541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A231 #3140B1
analogous
#B16231 #B1A231 #80B131
triadic
#B1A231 #31B1A2 #A231B1
tetradic
#B1A231 #31B162 #3140B1 #B13180
square
#B1A231 #31B162 #3140B1 #B13180
split-complementary
#B1A231 #3180B1 #6231B1
monochromatic
#514A16 #817624 #B1A231 #CFC051 #DCD180

Accessibility & contrast

On white

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

On black

8.08
#B1A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A231
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A231#FFFFFF#000000##000000
##B1A2311.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1E
Deuteranopia (green-blind)
#B6A338
Tritanopia (blue-blind)
#BF968C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b1a231;
/* rgb */ color: rgb(177, 162, 49);
/* oklch */ color: oklch(70.5% 0.130 101.6);
Tailwind
colors: {
  custom: {
    50: '#ccbd71',
    500: '#b1a231',
    950: '#000000',
  },
}
SCSS
$custom: #b1a231;
$custom-light: #ccbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a231",
  "rgb": {
    "r": 177,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 52.969,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.70498,
    "c": 0.12998,
    "h": 101.6
  },
  "luminance": 0.3541
}

Semantic roles & 50–950 ramp

primary
#B1A231
secondary
#7982C5
accent
#5AE048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B1A231

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

Preview Lab → · Contrast checker → · Palette generator →

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