#B7A23C#B7A23C

#B7A23C is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.122 H 97.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B7A23C
RGBrgb(183, 162, 60)
HSLhsl(50, 51%, 48%)
HSVhsv(50, 67%, 72%)
CMYKcmyk(0%, 11.5%, 67.2%, 28.2%)
CIE-LABlab(66.70, -4.10, 53.83)
CIE-LCHlch(66.70, 53.99, 94.36°)
OKLaboklab(71.16% -0.016 0.1214)
OKLCHoklch(71.16% 0.122 97.5)
XYZxyz(33.2659, 36.2358, 9.5161)
Luminance0.3623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7A23C #3C51B7
analogous
#B7643C #B7A23C #8EB73C
triadic
#B7A23C #3CB7A2 #A23CB7
tetradic
#B7A23C #3CB764 #3C51B7 #B73C8E
square
#B7A23C #3CB764 #3C51B7 #B73C8E
split-complementary
#B7A23C #3C8EB7 #643CB7
monochromatic
#5B501E #89792D #B7A23C #CCBA64 #DBCF92

Accessibility & contrast

On white

2.55
#B7A23C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B7A23C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7A23C
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7A23C#FFFFFF#000000##000000
##B7A23C1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E2F
Deuteranopia (green-blind)
#B7A542
Tritanopia (blue-blind)
#C5968D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b7a23c;
/* rgb */ color: rgb(183, 162, 60);
/* oklch */ color: oklch(71.2% 0.122 97.5);
Tailwind
colors: {
  custom: {
    50: '#d0bd77',
    500: '#b7a23c',
    950: '#000000',
  },
}
SCSS
$custom: #b7a23c;
$custom-light: #d0bd77;
$custom-dark: #000000;
JSON
{
  "hex": "#b7a23c",
  "rgb": {
    "r": 183,
    "g": 162,
    "b": 60
  },
  "hsl": {
    "h": 49.756,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71156,
    "c": 0.12245,
    "h": 97.5
  },
  "luminance": 0.36234
}

Semantic roles & 50–950 ramp

primary
#B7A23C
secondary
#8893C6
accent
#66DA4E
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B7A23C

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

Preview Lab → · Contrast checker → · Palette generator →

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