#B7A338#B7A338

#B7A338 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.126 H 98.5°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#B7A338
RGBrgb(183, 163, 56)
HSLhsl(51, 53%, 47%)
HSVhsv(51, 69%, 72%)
CMYKcmyk(0%, 10.9%, 69.4%, 28.2%)
CIE-LABlab(66.94, -4.86, 55.75)
CIE-LCHlch(66.94, 55.96, 94.98°)
OKLaboklab(71.33% -0.0186 0.1248)
OKLCHoklch(71.33% 0.126 98.5)
XYZxyz(33.3410, 36.5488, 9.0391)
Luminance0.3655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A338 #384CB7
analogous
#B76438 #B7A338 #8CB738
triadic
#B7A338 #38B7A3 #A338B7
tetradic
#B7A338 #38B764 #384CB7 #B7388C
square
#B7A338 #38B764 #384CB7 #B7388C
split-complementary
#B7A338 #388CB7 #6438B7
monochromatic
#59501B #88792A #B7A338 #CEBC5E #DCD08D

Accessibility & contrast

On white

2.53
#B7A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#B7A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A338
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A338#FFFFFF#000000##000000
##B7A3381.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F29
Deuteranopia (green-blind)
#B8A63E
Tritanopia (blue-blind)
#C5978D
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b7a338;
/* rgb */ color: rgb(183, 163, 56);
/* oklch */ color: oklch(71.3% 0.126 98.5);
Tailwind
colors: {
  custom: {
    50: '#d0bd75',
    500: '#b7a338',
    950: '#000000',
  },
}
SCSS
$custom: #b7a338;
$custom-light: #d0bd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a338",
  "rgb": {
    "r": 183,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 50.551,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.71334,
    "c": 0.12615,
    "h": 98.5
  },
  "luminance": 0.36547
}

Semantic roles & 50–950 ramp

primary
#B7A338
secondary
#848FC7
accent
#62DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A338

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

Preview Lab → · Contrast checker → · Palette generator →

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