#B3A240#B3A240

#B3A240 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.119 H 99.4°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#B3A240
RGBrgb(179, 162, 64)
HSLhsl(51, 47%, 48%)
HSVhsv(51, 64%, 70%)
CMYKcmyk(0%, 9.5%, 64.2%, 29.8%)
CIE-LABlab(66.36, -5.60, 51.62)
CIE-LCHlch(66.36, 51.92, 96.19°)
OKLaboklab(70.81% -0.0195 0.1175)
OKLCHoklch(70.81% 0.119 99.4)
XYZxyz(32.4375, 35.7960, 10.0502)
Luminance0.3579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A240 #4051B3
analogous
#B36840 #B3A240 #8BB340
triadic
#B3A240 #40B3A2 #A240B3
tetradic
#B3A240 #40B368 #4051B3 #B3408B
square
#B3A240 #40B368 #4051B3 #B3408B
split-complementary
#B3A240 #408BB3 #6840B3
monochromatic
#595020 #867930 #B3A240 #C9BA67 #D9CF94

Accessibility & contrast

On white

2.57
#B3A240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#B3A240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A240
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A240#FFFFFF#000000##000000
##B3A2401.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E34
Deuteranopia (green-blind)
#B5A445
Tritanopia (blue-blind)
#C0978D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b3a240;
/* rgb */ color: rgb(179, 162, 64);
/* oklch */ color: oklch(70.8% 0.119 99.4);
Tailwind
colors: {
  custom: {
    50: '#cdbd79',
    500: '#b3a240',
    950: '#000000',
  },
}
SCSS
$custom: #b3a240;
$custom-light: #cdbd79;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a240",
  "rgb": {
    "r": 179,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 51.13,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.70813,
    "c": 0.11909,
    "h": 99.4
  },
  "luminance": 0.35795
}

Semantic roles & 50–950 ramp

primary
#B3A240
secondary
#8A93C4
accent
#65D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B3A240

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

Preview Lab → · Contrast checker → · Palette generator →

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