#B1A138#B1A138

#B1A138 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.3% C 0.124 H 100.5°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B1A138
RGBrgb(177, 161, 56)
HSLhsl(52, 52%, 46%)
HSVhsv(52, 68%, 69%)
CMYKcmyk(0%, 9%, 68.4%, 30.6%)
CIE-LABlab(65.84, -6.43, 54.46)
CIE-LCHlch(65.84, 54.84, 96.73°)
OKLaboklab(70.34% -0.0227 0.1222)
OKLCHoklch(70.34% 0.124 100.5)
XYZxyz(31.5915, 35.1238, 8.8561)
Luminance0.3512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B1A138 #3848B1
analogous
#B16438 #B1A138 #84B138
triadic
#B1A138 #38B1A1 #A138B1
tetradic
#B1A138 #38B164 #3848B1 #B13884
square
#B1A138 #38B164 #3848B1 #B13884
split-complementary
#B1A138 #3884B1 #6438B1
monochromatic
#544C1B #837729 #B1A138 #CBBC5B #DACF8A

Accessibility & contrast

On white

2.62
#B1A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#B1A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B1A138
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B1A138#FFFFFF#000000##000000
##B1A1381.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C2A
Deuteranopia (green-blind)
#B4A33E
Tritanopia (blue-blind)
#BE968C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b1a138;
/* rgb */ color: rgb(177, 161, 56);
/* oklch */ color: oklch(70.3% 0.124 100.5);
Tailwind
colors: {
  custom: {
    50: '#ccbc74',
    500: '#b1a138',
    950: '#000000',
  },
}
SCSS
$custom: #b1a138;
$custom-light: #ccbc74;
$custom-dark: #000000;
JSON
{
  "hex": "#b1a138",
  "rgb": {
    "r": 177,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 52.066,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70337,
    "c": 0.12433,
    "h": 100.5
  },
  "luminance": 0.35122
}

Semantic roles & 50–950 ramp

primary
#B1A138
secondary
#818AC4
accent
#5FDB4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #B1A138

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

Preview Lab → · Contrast checker → · Palette generator →

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