#B7AB38#B7AB38

#B7AB38 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 73.0% C 0.133 H 103.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#B7AB38
RGBrgb(183, 171, 56)
HSLhsl(54, 53%, 47%)
HSVhsv(54, 69%, 72%)
CMYKcmyk(0%, 6.6%, 69.4%, 28.2%)
CIE-LABlab(69.10, -9.08, 57.93)
CIE-LCHlch(69.10, 58.64, 98.91°)
OKLaboklab(73.05% -0.0306 0.1294)
OKLCHoklch(73.05% 0.133 103.3)
XYZxyz(34.8066, 39.4800, 9.5276)
Luminance0.3948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7AB38 #3844B7
analogous
#B76C38 #B7AB38 #84B738
triadic
#B7AB38 #38B7AB #AB38B7
tetradic
#B7AB38 #38B76C #3844B7 #B73884
square
#B7AB38 #38B76C #3844B7 #B73884
split-complementary
#B7AB38 #3884B7 #6C38B7
monochromatic
#59531B #887F2A #B7AB38 #CEC35E #DCD58D

Accessibility & contrast

On white

2.36
#B7AB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#B7AB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7AB38
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7AB38#FFFFFF#000000##000000
##B7AB381.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA527
Deuteranopia (green-blind)
#BEAB3F
Tritanopia (blue-blind)
#C59F94
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #b7ab38;
/* rgb */ color: rgb(183, 171, 56);
/* oklch */ color: oklch(73.0% 0.133 103.3);
Tailwind
colors: {
  custom: {
    50: '#d0c376',
    500: '#b7ab38',
    950: '#000000',
  },
}
SCSS
$custom: #b7ab38;
$custom-light: #d0c376;
$custom-dark: #000000;
JSON
{
  "hex": "#b7ab38",
  "rgb": {
    "r": 183,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 54.331,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.73049,
    "c": 0.13294,
    "h": 103.3
  },
  "luminance": 0.39479
}

Semantic roles & 50–950 ramp

primary
#B7AB38
secondary
#848AC7
accent
#59DD4B
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7AB38

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

Preview Lab → · Contrast checker → · Palette generator →

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