#AFB827#AFB827

#AFB827 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.1% C 0.157 H 113.3°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#AFB827
RGBrgb(175, 184, 39)
HSLhsl(64, 65%, 44%)
HSVhsv(64, 79%, 72%)
CMYKcmyk(4.9%, 0%, 78.8%, 27.8%)
CIE-LABlab(71.92, -19.95, 66.21)
CIE-LCHlch(71.92, 69.15, 106.77°)
OKLaboklab(75.11% -0.0621 0.1442)
OKLCHoklch(75.11% 0.157 113.3)
XYZxyz(35.1870, 43.5422, 8.4700)
Luminance0.4354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB827 #3027B8
analogous
#B87827 #AFB827 #66B827
triadic
#AFB827 #27AFB8 #B827AF
tetradic
#AFB827 #27B878 #3027B8 #B82766
square
#AFB827 #27B878 #3027B8 #B82766
split-complementary
#AFB827 #2766B8 #7827B8
monochromatic
#4F5312 #7F861C #AFB827 #CED845 #DCE277

Accessibility & contrast

On white

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

On black

9.71
#AFB827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB827
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB827#FFFFFF#000000##000000
##AFB8271.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb827;
/* rgb */ color: rgb(175, 184, 39);
/* oklch */ color: oklch(75.1% 0.157 113.3);
Tailwind
colors: {
  custom: {
    50: '#cbcd6f',
    500: '#afb827',
    950: '#000000',
  },
}
SCSS
$custom: #afb827;
$custom-light: #cbcd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb827",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 39
  },
  "hsl": {
    "h": 63.724,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.75111,
    "c": 0.15698,
    "h": 113.3
  },
  "luminance": 0.43541
}

Semantic roles & 50–950 ramp

primary
#AFB827
secondary
#7671CA
accent
#40E84A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB827

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

Preview Lab → · Contrast checker → · Palette generator →

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