#B3A040#B3A040

#B3A040 is a light, moderate yellow. Relative luminance 0.351; OKLCH L 70.4% C 0.117 H 98.1°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B3A040
RGBrgb(179, 160, 64)
HSLhsl(50, 47%, 48%)
HSVhsv(50, 64%, 70%)
CMYKcmyk(0%, 10.6%, 64.2%, 29.8%)
CIE-LABlab(65.82, -4.54, 51.04)
CIE-LCHlch(65.82, 51.24, 95.08°)
OKLaboklab(70.38% -0.0165 0.1163)
OKLCHoklch(70.38% 0.117 98.1)
XYZxyz(32.0880, 35.0970, 9.9337)
Luminance0.3509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A040 #4053B3
analogous
#B36640 #B3A040 #8CB340
triadic
#B3A040 #40B3A0 #A040B3
tetradic
#B3A040 #40B366 #4053B3 #B3408C
square
#B3A040 #40B366 #4053B3 #B3408C
split-complementary
#B3A040 #408CB3 #6640B3
monochromatic
#594F20 #867830 #B3A040 #C9B967 #D9CE94

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B3A040#FFFFFF#000000##000000
##B3A0401.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)
#AF9C35
Deuteranopia (green-blind)
#B4A345
Tritanopia (blue-blind)
#C0958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b3a040;
/* rgb */ color: rgb(179, 160, 64);
/* oklch */ color: oklch(70.4% 0.117 98.1);
Tailwind
colors: {
  custom: {
    50: '#cdbb79',
    500: '#b3a040',
    950: '#000000',
  },
}
SCSS
$custom: #b3a040;
$custom-light: #cdbb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a040",
  "rgb": {
    "r": 179,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 50.087,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.70385,
    "c": 0.11741,
    "h": 98.1
  },
  "luminance": 0.35095
}

Semantic roles & 50–950 ramp

primary
#B3A040
secondary
#8A94C4
accent
#67D751
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B3A040

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

Preview Lab → · Contrast checker → · Palette generator →

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