#AFB837#AFB837

#AFB837 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.2% C 0.148 H 113.4°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#AFB837
RGBrgb(175, 184, 55)
HSLhsl(64, 54%, 47%)
HSVhsv(64, 70%, 72%)
CMYKcmyk(4.9%, 0%, 70.1%, 27.8%)
CIE-LABlab(72.01, -19.23, 60.99)
CIE-LCHlch(72.01, 63.95, 107.50°)
OKLaboklab(75.21% -0.0587 0.1359)
OKLCHoklch(75.21% 0.148 113.4)
XYZxyz(35.5103, 43.6715, 10.1725)
Luminance0.4367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB837 #4037B8
analogous
#B88137 #AFB837 #6FB837
triadic
#AFB837 #37AFB8 #B837AF
tetradic
#AFB837 #37B881 #4037B8 #B8376F
square
#AFB837 #37B881 #4037B8 #B8376F
split-complementary
#AFB837 #376FB8 #8137B8
monochromatic
#555A1B #828929 #AFB837 #C7CF5D #D7DD8D

Accessibility & contrast

On white

2.16
#AFB837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#AFB837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB837
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB837#FFFFFF#000000##000000
##AFB8371.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF21
Deuteranopia (green-blind)
#C5B241
Tritanopia (blue-blind)
#BBAD9F
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb837;
/* rgb */ color: rgb(175, 184, 55);
/* oklch */ color: oklch(75.2% 0.148 113.4);
Tailwind
colors: {
  custom: {
    50: '#cacd76',
    500: '#afb837',
    950: '#000000',
  },
}
SCSS
$custom: #afb837;
$custom-light: #cacd76;
$custom-dark: #000000;
JSON
{
  "hex": "#afb837",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 55
  },
  "hsl": {
    "h": 64.186,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75209,
    "c": 0.14806,
    "h": 113.4
  },
  "luminance": 0.43671
}

Semantic roles & 50–950 ramp

primary
#AFB837
secondary
#8884C7
accent
#4ADD55
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB837

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

Preview Lab → · Contrast checker → · Palette generator →

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