#B2AB38#B2AB38

#B2AB38 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.133 H 105.8°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#B2AB38
RGBrgb(178, 171, 56)
HSLhsl(57, 52%, 46%)
HSVhsv(57, 69%, 70%)
CMYKcmyk(0%, 3.9%, 68.5%, 30.2%)
CIE-LABlab(68.66, -11.25, 57.35)
CIE-LCHlch(68.66, 58.44, 101.10°)
OKLaboklab(72.6% -0.0364 0.1283)
OKLCHoklch(72.6% 0.133 105.8)
XYZxyz(33.6381, 38.8775, 9.4728)
Luminance0.3888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2AB38 #383FB2
analogous
#B26E38 #B2AB38 #7CB238
triadic
#B2AB38 #38B2AB #AB38B2
tetradic
#B2AB38 #38B26E #383FB2 #B2387C
square
#B2AB38 #38B26E #383FB2 #B2387C
split-complementary
#B2AB38 #387CB2 #6E38B2
monochromatic
#55521B #837E29 #B2AB38 #CCC55C #DAD68A

Accessibility & contrast

On white

2.39
#B2AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#B2AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2AB38
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2AB38#FFFFFF#000000##000000
##B2AB381.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BCAA40
Tritanopia (blue-blind)
#BFA094
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2ab38;
/* rgb */ color: rgb(178, 171, 56);
/* oklch */ color: oklch(72.6% 0.133 105.8);
Tailwind
colors: {
  custom: {
    50: '#ccc375',
    500: '#b2ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b2ab38;
$custom-light: #ccc375;
$custom-dark: #000000;
JSON
{
  "hex": "#b2ab38",
  "rgb": {
    "r": 178,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 56.557,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.72598,
    "c": 0.13339,
    "h": 105.8
  },
  "luminance": 0.38876
}

Semantic roles & 50–950 ramp

primary
#B2AB38
secondary
#8185C5
accent
#54DC4C
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B2AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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