#B1AB38#B1AB38

#B1AB38 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.134 H 106.4°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#B1AB38
RGBrgb(177, 171, 56)
HSLhsl(57, 52%, 46%)
HSVhsv(57, 68%, 69%)
CMYKcmyk(0%, 3.4%, 68.4%, 30.6%)
CIE-LABlab(68.58, -11.69, 57.23)
CIE-LCHlch(68.58, 58.42, 101.54°)
OKLaboklab(72.51% -0.0376 0.1281)
OKLCHoklch(72.51% 0.134 106.4)
XYZxyz(33.4094, 38.7596, 9.4621)
Luminance0.3876 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1AB38 #383EB1
analogous
#B16E38 #B1AB38 #7AB138
triadic
#B1AB38 #38B1AB #AB38B1
tetradic
#B1AB38 #38B16E #383EB1 #B1387A
square
#B1AB38 #38B16E #383EB1 #B1387A
split-complementary
#B1AB38 #387AB1 #6E38B1
monochromatic
#54511B #837E29 #B1AB38 #CBC65B #DAD68A

Accessibility & contrast

On white

2.40
#B1AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#B1AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1AB38
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1AB38#FFFFFF#000000##000000
##B1AB381.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A527
Deuteranopia (green-blind)
#BCA940
Tritanopia (blue-blind)
#BEA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b1ab38;
/* rgb */ color: rgb(177, 171, 56);
/* oklch */ color: oklch(72.5% 0.134 106.4);
Tailwind
colors: {
  custom: {
    50: '#ccc375',
    500: '#b1ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b1ab38;
$custom-light: #ccc375;
$custom-dark: #000000;
JSON
{
  "hex": "#b1ab38",
  "rgb": {
    "r": 177,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 57.025,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72509,
    "c": 0.13351,
    "h": 106.4
  },
  "luminance": 0.38758
}

Semantic roles & 50–950 ramp

primary
#B1AB38
secondary
#8184C4
accent
#54DB4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #B1AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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