#AF9F27#AF9F27

#AF9F27 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.133 H 101.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#AF9F27
RGBrgb(175, 159, 39)
HSLhsl(53, 64%, 42%)
HSVhsv(53, 78%, 69%)
CMYKcmyk(0%, 9.1%, 77.7%, 31.4%)
CIE-LABlab(65.01, -7.07, 59.97)
CIE-LCHlch(65.01, 60.39, 96.72°)
OKLaboklab(69.6% -0.0262 0.1308)
OKLCHoklch(69.6% 0.133 101.3)
XYZxyz(30.4450, 34.0581, 6.8893)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F27 #2737AF
analogous
#AF5B27 #AF9F27 #7BAF27
triadic
#AF9F27 #27AF9F #9F27AF
tetradic
#AF9F27 #27AF5B #2737AF #AF277B
square
#AF9F27 #27AF5B #2737AF #AF277B
split-complementary
#AF9F27 #277BAF #5B27AF
monochromatic
#4B4411 #7D721C #AF9F27 #D4C33F #DFD271

Accessibility & contrast

On white

2.69
#AF9F27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#AF9F27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F27
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F27#FFFFFF#000000##000000
##AF9F271.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A0A
Deuteranopia (green-blind)
#B3A130
Tritanopia (blue-blind)
#BD9388
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f27;
/* rgb */ color: rgb(175, 159, 39);
/* oklch */ color: oklch(69.6% 0.133 101.3);
Tailwind
colors: {
  custom: {
    50: '#cbbb6b',
    500: '#af9f27',
    950: '#000000',
  },
}
SCSS
$custom: #af9f27;
$custom-light: #cbbb6b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f27",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 39
  },
  "hsl": {
    "h": 52.941,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.69595,
    "c": 0.13342,
    "h": 101.3
  },
  "luminance": 0.34057
}

Semantic roles & 50–950 ramp

primary
#AF9F27
secondary
#6B76C6
accent
#55E741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9F27

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

Preview Lab → · Contrast checker → · Palette generator →

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