#B7B538#B7B538

#B7B538 is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.2% C 0.142 H 108.5°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#B7B538
RGBrgb(183, 181, 56)
HSLhsl(59, 53%, 47%)
HSVhsv(59, 69%, 72%)
CMYKcmyk(0%, 1.1%, 69.4%, 28.2%)
CIE-LABlab(71.83, -14.25, 60.65)
CIE-LCHlch(71.83, 62.30, 103.22°)
OKLaboklab(75.22% -0.0451 0.1351)
OKLCHoklch(75.22% 0.142 108.5)
XYZxyz(36.7674, 43.4017, 10.1812)
Luminance0.4340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B538 #383AB7
analogous
#B77638 #B7B538 #7AB738
triadic
#B7B538 #38B7B5 #B538B7
tetradic
#B7B538 #38B776 #383AB7 #B7387A
square
#B7B538 #38B776 #383AB7 #B7387A
split-complementary
#B7B538 #387AB7 #7638B7
monochromatic
#59581B #88872A #B7B538 #CECC5E #DCDB8D

Accessibility & contrast

On white

2.17
#B7B538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.68
#B7B538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B538
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B538#FFFFFF#000000##000000
##B7B5381.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE24
Deuteranopia (green-blind)
#C6B241
Tritanopia (blue-blind)
#C4A99C
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #b7b538;
/* rgb */ color: rgb(183, 181, 56);
/* oklch */ color: oklch(75.2% 0.142 108.5);
Tailwind
colors: {
  custom: {
    50: '#d0ca76',
    500: '#b7b538',
    950: '#000000',
  },
}
SCSS
$custom: #b7b538;
$custom-light: #d0ca76;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b538",
  "rgb": {
    "r": 183,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 59.055,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75223,
    "c": 0.14246,
    "h": 108.5
  },
  "luminance": 0.43401
}

Semantic roles & 50–950 ramp

primary
#B7B538
secondary
#8485C7
accent
#4EDD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B538

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

Preview Lab → · Contrast checker → · Palette generator →

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