#B7B238#B7B238

#B7B238 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.140 H 107.0°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#B7B238
RGBrgb(183, 178, 56)
HSLhsl(58, 53%, 47%)
HSVhsv(58, 69%, 72%)
CMYKcmyk(0%, 2.7%, 69.4%, 28.2%)
CIE-LABlab(71.00, -12.71, 59.83)
CIE-LCHlch(71.00, 61.17, 101.99°)
OKLaboklab(74.57% -0.0408 0.1334)
OKLCHoklch(74.57% 0.14 107)
XYZxyz(36.1640, 42.1948, 9.9801)
Luminance0.4219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B238 #383DB7
analogous
#B77338 #B7B238 #7DB738
triadic
#B7B238 #38B7B2 #B238B7
tetradic
#B7B238 #38B773 #383DB7 #B7387D
square
#B7B238 #38B773 #383DB7 #B7387D
split-complementary
#B7B238 #387DB7 #7338B7
monochromatic
#59571B #88842A #B7B238 #CEC95E #DCD98D

Accessibility & contrast

On white

2.22
#B7B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#B7B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B238
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B238#FFFFFF#000000##000000
##B7B2381.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#C4A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b7b238;
/* rgb */ color: rgb(183, 178, 56);
/* oklch */ color: oklch(74.6% 0.140 107.0);
Tailwind
colors: {
  custom: {
    50: '#d0c876',
    500: '#b7b238',
    950: '#000000',
  },
}
SCSS
$custom: #b7b238;
$custom-light: #d0c876;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b238",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 57.638,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.74568,
    "c": 0.13951,
    "h": 107
  },
  "luminance": 0.42194
}

Semantic roles & 50–950 ramp

primary
#B7B238
secondary
#8487C7
accent
#51DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B7B238

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

Preview Lab → · Contrast checker → · Palette generator →

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