#B5A862#B5A862

#B5A862 is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.7% C 0.092 H 99.0°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#B5A862
RGBrgb(181, 168, 98)
HSLhsl(51, 36%, 55%)
HSVhsv(51, 46%, 71%)
CMYKcmyk(0%, 7.2%, 45.9%, 29%)
CIE-LABlab(68.54, -5.12, 37.72)
CIE-LCHlch(68.54, 38.06, 97.74°)
OKLaboklab(72.71% -0.0144 0.0909)
OKLCHoklch(72.71% 0.092 99)
XYZxyz(35.2642, 38.7121, 17.1675)
Luminance0.3871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A862 #626FB5
analogous
#B57E62 #B5A862 #99B562
triadic
#B5A862 #62B5A8 #A862B5
tetradic
#B5A862 #62B57E #626FB5 #B56299
square
#B5A862 #62B57E #626FB5 #B56299
split-complementary
#B5A862 #6299B5 #7E62B5
monochromatic
#6A6232 #948846 #B5A862 #C9BF8C #DCD6B5

Accessibility & contrast

On white

2.40
#B5A862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#B5A862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A862
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A862#FFFFFF#000000##000000
##B5A8621.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A45C
Deuteranopia (green-blind)
#B8A965
Tritanopia (blue-blind)
#C09F97
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b5a862;
/* rgb */ color: rgb(181, 168, 98);
/* oklch */ color: oklch(72.7% 0.092 99.0);
Tailwind
colors: {
  custom: {
    50: '#cdc190',
    500: '#b5a862',
    950: '#000000',
  },
}
SCSS
$custom: #b5a862;
$custom-light: #cdc190;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a862",
  "rgb": {
    "r": 181,
    "g": 168,
    "b": 98
  },
  "hsl": {
    "h": 50.602,
    "s": 35.931,
    "l": 54.706
  },
  "oklch": {
    "l": 0.72705,
    "c": 0.09203,
    "h": 99
  },
  "luminance": 0.38711
}

Semantic roles & 50–950 ramp

primary
#B5A862
secondary
#A8ADCB
accent
#6DCC5C
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#14120C
muted
#82817D

Preview Lab

Preview with #B5A862

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

Preview Lab → · Contrast checker → · Palette generator →

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