#B3A138#B3A138

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

Color values

HEX#B3A138
RGBrgb(179, 161, 56)
HSLhsl(51, 52%, 46%)
HSVhsv(51, 69%, 70%)
CMYKcmyk(0%, 10.1%, 68.7%, 29.8%)
CIE-LABlab(66.03, -5.55, 54.70)
CIE-LCHlch(66.03, 54.98, 95.80°)
OKLaboklab(70.53% -0.0203 0.1227)
OKLCHoklch(70.53% 0.124 99.4)
XYZxyz(32.0505, 35.3605, 8.8776)
Luminance0.3536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A138 #384AB3
analogous
#B36438 #B3A138 #87B338
triadic
#B3A138 #38B3A1 #A138B3
tetradic
#B3A138 #38B364 #384AB3 #B33887
square
#B3A138 #38B364 #384AB3 #B33887
split-complementary
#B3A138 #3887B3 #6438B3
monochromatic
#564D1B #847729 #B3A138 #CCBC5C #DBCF8B

Accessibility & contrast

On white

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

On black

8.07
#B3A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A138
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A138#FFFFFF#000000##000000
##B3A1381.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09D2A
Deuteranopia (green-blind)
#B5A33E
Tritanopia (blue-blind)
#C1958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b3a138;
/* rgb */ color: rgb(179, 161, 56);
/* oklch */ color: oklch(70.5% 0.124 99.4);
Tailwind
colors: {
  custom: {
    50: '#cdbc75',
    500: '#b3a138',
    950: '#000000',
  },
}
SCSS
$custom: #b3a138;
$custom-light: #cdbc75;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a138",
  "rgb": {
    "r": 179,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 51.22,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70526,
    "c": 0.12437,
    "h": 99.4
  },
  "luminance": 0.35359
}

Semantic roles & 50–950 ramp

primary
#B3A138
secondary
#828CC5
accent
#61DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B3A138

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

Preview Lab → · Contrast checker → · Palette generator →

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